don't print anything if email send is successful

This commit is contained in:
Puyodead1 committed 2023-02-24 00:10:50 -05:00
1 parent 6131db986f
commit a78e13073f
2 files changed
+16 -21

No files matched your search

+1 -2
View File
@@ -37,8 +37,7 @@ router.post(
}
await Email.sendVerificationEmail(user, user.email)
.then((info) => {
console.log("Message sent: %s", info.messageId);
.then(() => {
return res.sendStatus(204);
})
.catch((e) => {