Skip to content

Commit

Permalink
chore: remove offset ref in job-scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Oct 7, 2024
1 parent 14ad389 commit 15d6087
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/classes/job-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ export class JobScheduler extends QueueBase {
});

const now = Date.now();
const delay =
nextMillis + (opts.repeat.offset ? opts.repeat.offset : 0) - now;
const delay = nextMillis - now;

const mergedOpts = {
...opts,
Expand Down

0 comments on commit 15d6087

Please sign in to comment.