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')