Skip to content

Commit

Permalink
change runImmediately to true
Browse files Browse the repository at this point in the history
  • Loading branch information
im-calvin committed Nov 1, 2023
1 parent 412b6e9 commit 345953f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export async function scrape() {
}
});

const job = new SimpleIntervalJob({ minutes: intervalTime, runImmediately: false }, task);
const job = new SimpleIntervalJob({ minutes: intervalTime, runImmediately: true }, task);

scheduler.addSimpleIntervalJob(job);
transaction.finish();
Expand Down

0 comments on commit 345953f

Please sign in to comment.