Skip to content

Commit

Permalink
fix: crontab style
Browse files Browse the repository at this point in the history
  • Loading branch information
great-park committed Dec 15, 2022
1 parent 9f66347 commit fadb5d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/scheduler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ logger.info(`Scheduler has been registered`);

export async function mainJob() {
try {
let hourRule = new schedule.RecurrenceRule();
hourRule.hour = 17;

const specificTimeJob = schedule.scheduleJob(hourRule, async function () {
const specificTimeJob = schedule.scheduleJob('0 0 9 * * *', async function () {
logger.info('🎉 Start Schedule Job! 🎉');
const categoryList: Array<[string, string]> = await getCategoryOnToday();
await redisFactory(categoryList).then(() => {
Expand Down

0 comments on commit fadb5d3

Please sign in to comment.