From 33a9493a98b8a04f11873bef6c758e111c75af9b Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 1 Mar 2022 15:15:02 -0500 Subject: [PATCH] fix issue --- src/commands/cwg_selfserv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cwg_selfserv.ts b/src/commands/cwg_selfserv.ts index a169a7e..2ebd84b 100644 --- a/src/commands/cwg_selfserv.ts +++ b/src/commands/cwg_selfserv.ts @@ -29,7 +29,7 @@ export default class CWG_SelfService extends Command { const account = await this.client.db.Account.findOne({ userID: message.author.id }); if (!account) return this.error(message.channel, 'Cannot locate account.'); - if (!this.checkAuthorizationToken(message.author.id, args[1])) return this.error(message.channel, 'The authentication token provided is invalid.'); + if (await this.checkAuthorizationToken(message.author.id, args[1]) !== true) return this.error(message.channel, 'The authentication token provided is invalid.'); if (!this.domainTextValidation(args[0])) return this.error(message.channel, 'Invalid domain.');