Skip to content

Commit 5f7a980

Browse files
fix(schedules): deployment bug (#3666)
* fix(schedules): deployment bug * fix
1 parent a2c08e1 commit 5f7a980

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/sim/lib/workflows/schedules/deploy.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ describe('Schedule Deploy Utilities', () => {
796796

797797
expect(mockOnConflictDoUpdate).toHaveBeenCalledWith({
798798
target: expect.any(Array),
799+
targetWhere: expect.objectContaining({ type: 'isNull' }),
799800
set: expect.objectContaining({
800801
blockId: 'block-1',
801802
cronExpression: '0 9 * * *',

apps/sim/lib/workflows/schedules/deploy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export async function createSchedulesForDeploy(
138138
workflowSchedule.blockId,
139139
workflowSchedule.deploymentVersionId,
140140
],
141+
targetWhere: isNull(workflowSchedule.archivedAt),
141142
set: setValues,
142143
})
143144

0 commit comments

Comments
 (0)