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)