refactor: show warning if there is no email for validation

This commit is contained in:
Barış Soner Uşaklı
2025-03-07 10:21:59 -05:00
parent bb13ea3013
commit 84d3fe7969

View File

@@ -134,6 +134,7 @@ UserEmail.sendValidationEmail = async function (uid, options) {
options.email = await user.getUserField(uid, 'email');
}
if (!options.email) {
winston.warn(`[user/email] No email found for uid ${uid}`);
return;
}