forked from engineering/cloudservices
fix get referral
parent
d059d430d2
commit
8feb9dddb9
|
@ -25,7 +25,7 @@ export default class Whois extends Command {
|
|||
if (args[1] === '--full' && this.fullRoles.some((r) => message.member.roles.includes(r))) full = true;
|
||||
|
||||
const user = args[0] || message.author.id;
|
||||
if (full) account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }, { emailAddress: user }, { supportKey: user.toUpperCase() }] });
|
||||
if (full) account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }, { emailAddress: user }, { supportKey: user.toUpperCase() }, { referralCode: args[0] }] });
|
||||
else account = await this.client.db.Account.findOne({ $or: [{ username: user }, { userID: user }] });
|
||||
if (!account) return this.error(message.channel, 'Account not found.');
|
||||
|
||||
|
|
Loading…
Reference in New Issue