Update fix

This commit is contained in:
Ryahn 2025-01-27 19:20:54 -05:00
parent 4e1ba15a5d
commit ccba392ca0

View File

@ -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,