refactor: ♻️ Fix more code smells

Fix code smell
This commit is contained in:
Axel Olausson Holtenäs 2022-12-13 15:01:30 +01:00
parent 555b97d2c5
commit c33a9c345e

View file

@ -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;
};