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