From 004bfee4e0cb0f9a46159d9330ae7c8d93dab4c0 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Thu, 18 Apr 2024 00:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=8F=96=E5=90=88=E4=BD=9C=E4=BC=99?= =?UTF-8?q?=E4=BC=B4=E5=A5=96=E5=8A=B1=E4=BC=98=E5=85=88=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=85=B3=E8=81=94discord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/nft.controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/nft.controller.ts b/src/controllers/nft.controller.ts index 1f96a8b..907360a 100644 --- a/src/controllers/nft.controller.ts +++ b/src/controllers/nft.controller.ts @@ -81,6 +81,9 @@ class NftController extends BaseController { new SyncLocker().checkLock(req) logger.db('claim_partner', req) const user = req.user + if (!user.discord) { + throw new ZError(10, 'need connect discord first') + } let { contract } = req.params if (!contract) { throw new ZError(11, 'contract not found')