refactor: ♻️ Fix more code smells
Fix code smell
This commit is contained in:
parent
555b97d2c5
commit
c33a9c345e
1 changed files with 1 additions and 2 deletions
|
@ -15,11 +15,10 @@ export const start = async (client: Client) => {
|
|||
jobNames.map(async (jobName) => {
|
||||
const job: IJob = await import(`../../schedules/${jobName}`);
|
||||
|
||||
schedule.scheduleJob(job.options.schedule, async () => {
|
||||
return schedule.scheduleJob(job.options.schedule, async () => {
|
||||
logger.verbose(`⏰ Performed the job "${jobName}"`);
|
||||
await job.execute(client);
|
||||
});
|
||||
})
|
||||
);
|
||||
return;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue