From 7042302e2f78220cb30e12bb54896ae1343f8a76 Mon Sep 17 00:00:00 2001 From: eoao Date: Mon, 13 Oct 2025 00:22:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E6=97=A0=E4=BA=BA=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail-worker/src/email/email.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mail-worker/src/email/email.js b/mail-worker/src/email/email.js index 5caa839..8cdf4c9 100644 --- a/mail-worker/src/email/email.js +++ b/mail-worker/src/email/email.js @@ -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) {