From 7e8505d0b4042b806aae49db4f623b9b4942450a Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Thu, 15 Jun 2023 18:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0role=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=97=B6=EF=BC=8C=20=E5=A2=9E=E5=8A=A0addres?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/main.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/main.controller.ts b/src/controllers/main.controller.ts index acaf7e0..274b51c 100644 --- a/src/controllers/main.controller.ts +++ b/src/controllers/main.controller.ts @@ -53,7 +53,7 @@ class MainController extends BaseController { let verified = await new DiscordSvr().checkUserRole(result.discord.id) if (verified) { logger.info('check role with verified: ' + verified) - await AuthRecord.updateOne({ openId: result.discord.id, platform: 7 }, { $set: { condition: 1 } }) + await AuthRecord.updateOne({ openId: result.discord.id, platform: 7, address }, { $set: { condition: 1 } }) } } catch (err) { logger.info('check role with err: ' + err.message || err)