If the timezone has changed then we need to reschedule the next scheduled run

This commit is contained in:
Matt Aitken
2024-06-18 14:49:16 +01:00
parent 25d15578f7
commit b45ca4e146
@@ -215,7 +215,8 @@ export class UpsertTaskScheduleService extends BaseService {
});
const scheduleHasChanged =
scheduleRecord.generatorExpression !== existingSchedule.generatorExpression;
scheduleRecord.generatorExpression !== existingSchedule.generatorExpression ||
scheduleRecord.timezone !== existingSchedule.timezone;
// find the existing instances
const existingInstances = await tx.taskScheduleInstance.findMany({