fix: use task id as hash
This commit is contained in:
@@ -46,6 +46,7 @@ export function taskNextReset(task: Task): Date | null {
|
|||||||
try {
|
try {
|
||||||
const interval = CronExpressionParser.parse(task.reset_cron, {
|
const interval = CronExpressionParser.parse(task.reset_cron, {
|
||||||
currentDate: task.check_date,
|
currentDate: task.check_date,
|
||||||
|
hashSeed: task.id,
|
||||||
});
|
});
|
||||||
return interval.next().toDate();
|
return interval.next().toDate();
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user