Update fix
This commit is contained in:
parent
4e1ba15a5d
commit
ccba392ca0
@ -36,6 +36,10 @@ class MessageService {
|
||||
throw new Error("Temporary email not authorized");
|
||||
}
|
||||
|
||||
if (await this.isValidDomain(messageData.to)) {
|
||||
throw new Error("Receiving to temporary email addresses is not allowed");
|
||||
}
|
||||
|
||||
return Message.query().insert({
|
||||
...messageData,
|
||||
temp_email_id: tempEmail.id,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user