修复无法接收无人邮件

This commit is contained in:
eoao
2025-10-13 00:22:00 +08:00
parent 7fd576aca7
commit 7042302e2f
+5 -1
View File
@@ -59,7 +59,11 @@ export async function email(message, env, ctx) {
return;
}
const userRow = await userService.selectById({ env: env }, account.userId);
let userRow = {}
if (account) {
userRow = await userService.selectById({ env: env }, account.userId);
}
if (account && userRow.email !== env.admin) {