fix apply cmd
parent
fff98867c7
commit
ca6e20fa0b
|
@ -99,6 +99,7 @@ export default class Apply extends Command {
|
||||||
url: 'https://eds.libraryofcode.org/cs/t3-temp',
|
url: 'https://eds.libraryofcode.org/cs/t3-temp',
|
||||||
validation: async (member: Member) => {
|
validation: async (member: Member) => {
|
||||||
const csAccount = await CloudServicesUtil.fetchAccountStatus(member.id, this.client.config.internalKey);
|
const csAccount = await CloudServicesUtil.fetchAccountStatus(member.id, this.client.config.internalKey);
|
||||||
|
if (!csAccount) return false;
|
||||||
const memberCheck = await this.client.db.mongo.Member.findOne({ userID: member.id }).lean().exec();
|
const memberCheck = await this.client.db.mongo.Member.findOne({ userID: member.id }).lean().exec();
|
||||||
if (new Date() > memberCheck?.misc?.t3TemporaryExpiration?.date) return false;
|
if (new Date() > memberCheck?.misc?.t3TemporaryExpiration?.date) return false;
|
||||||
if (csAccount.tier === 3) return false;
|
if (csAccount.tier === 3) return false;
|
||||||
|
|
Loading…
Reference in New Issue