Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Commit 4c2c97a

Browse files
authored
remove fallback date for nextRunAt
This just creates wrong data. Old jobs that have been executed already and will not be executed again appear as jobs that will run at the current date (as their date is null). It should just be null instead like it is written in the persistence layer. No need for a fallback.
1 parent b04171d commit 4c2c97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/job/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class Job<T extends JobAttributesData = JobAttributesData> {
213213
name: attrs.name || '',
214214
priority: attrs.priority,
215215
type: type || 'once',
216-
nextRunAt: nextRunAt || new Date(),
216+
nextRunAt: nextRunAt,
217217
};
218218
}
219219

0 commit comments

Comments
 (0)