Skip to content

Commit 6d46620

Browse files
committed
fix: restore timing fields to declarative schedule sync select
The merge with #4577 (scope declarative schedule sync to the current environment) narrowed the existingDeclarativeSchedules findMany to a select that omitted generatorExpression, timezone, windowDurationSeconds and windowPercentage. The timingChanged comparison reads those fields to decide whether to preserve the existing Redis job, so they must be selected.
1 parent 40059cb commit 6d46620

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/webapp/app/v3/services/createBackgroundWorker.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,10 @@ export async function syncDeclarativeSchedules(
666666
id: true,
667667
friendlyId: true,
668668
taskIdentifier: true,
669+
generatorExpression: true,
670+
timezone: true,
671+
windowDurationSeconds: true,
672+
windowPercentage: true,
669673
instances: {
670674
select: {
671675
environmentId: true,

0 commit comments

Comments
 (0)