merge-requests/28/head
Matthew 2021-12-09 22:22:00 -05:00
parent 0f9c5f81b7
commit 4d9af81e7b
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 3 additions and 4 deletions

View File

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