master
Matthew 2021-12-09 22:15:48 -05:00
parent e9ea2c448a
commit 0f9c5f81b7
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 4 additions and 2 deletions

View File

@ -174,8 +174,10 @@ export default class Queue {
}
if (job.data.func) {
const func = eval(job.data.func);
console.log(application);
console.log(job.data.func);
console.log(func.toString());
if (application.status === 'SUCCESS' && application.decision === 'APPROVED') await func(this.client, job.data.userID);
console.log('ok');
}
});
}

View File

@ -95,7 +95,7 @@ export default class Apply extends Command {
});
await addMember.save();
}
await this.client.db.Member.updateOne({ userID: dmember.id }, { $set: { misc: { t3TemporaryExpiration: { processed: false, date: new Date(Date.now() + 1800000), previousTier: csAccount.tier } } } });
this.client.db.Member.updateOne({ userID: dmember.id }, { $set: { misc: { t3TemporaryExpiration: { processed: false, date: new Date(Date.now() + 1800000), previousTier: csAccount.tier } } } }).exec();
await CloudServicesUtil.setTier(dmember.id, 3, this.client.config.internalKey);
},