Skip to content

Commit

Permalink
chore: validate offset
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Jan 5, 2025
1 parent e31ee37 commit 3fb043d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/classes/job-scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ export class JobScheduler extends QueueBase {
jobSchedulerId,
{
...opts,
repeat: { ...filteredRepeatOpts, offset: newOffset },
repeat: {
...filteredRepeatOpts,
offset: newOffset ? newOffset : undefined,
},
telemetry,
},
iterationCount,
Expand Down

0 comments on commit 3fb043d

Please sign in to comment.