changes
parent
e9ea2c448a
commit
0f9c5f81b7
|
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue