mirror of
https://github.com/schroinerxy/cloud-mail.git
synced 2026-06-21 19:35:50 +08:00
修复无法接收无人邮件
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user