Compare commits

...

2 Commits

Author SHA1 Message Date
Ryahn
ccba392ca0 Update fix 2025-01-27 19:20:54 -05:00
Ryahn
4e1ba15a5d small update 2025-01-27 19:19:35 -05:00

View File

@ -36,11 +36,7 @@ class MessageService {
throw new Error("Temporary email not authorized");
}
const isToValid = await Promise.all(
messageData.to.split(",").map((email) => this.isValidEmail(email.trim()))
);
if (isToValid.includes(false)) {
if (await this.isValidDomain(messageData.to)) {
throw new Error("Receiving to temporary email addresses is not allowed");
}