call
parent
0f9c5f81b7
commit
4d9af81e7b
|
@ -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');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue