From 0f9c5f81b77952c2edbcfbb8f1022965cde691fe Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 9 Dec 2021 22:15:48 -0500 Subject: [PATCH] changes --- src/class/Queue.ts | 4 +++- src/commands/apply.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/class/Queue.ts b/src/class/Queue.ts index 2f80d80..11e0cf6 100644 --- a/src/class/Queue.ts +++ b/src/class/Queue.ts @@ -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'); } }); } diff --git a/src/commands/apply.ts b/src/commands/apply.ts index ad13859..4b6c45a 100644 --- a/src/commands/apply.ts +++ b/src/commands/apply.ts @@ -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); },