1
0
Fork 0

fix issue

master
Matthew 2022-03-01 15:15:02 -05:00
parent c812a2fe02
commit 33a9493a98
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export default class CWG_SelfService extends Command {
const account = await this.client.db.Account.findOne({ userID: message.author.id }); const account = await this.client.db.Account.findOne({ userID: message.author.id });
if (!account) return this.error(message.channel, 'Cannot locate account.'); 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.'); if (!this.domainTextValidation(args[0])) return this.error(message.channel, 'Invalid domain.');