修复无法接收无人邮件
This commit is contained in:
@@ -59,7 +59,11 @@ export async function email(message, env, ctx) {
|
|||||||
return;
|
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) {
|
if (account && userRow.email !== env.admin) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user