fix(schedules): deployment bug (#3666)

* fix(schedules): deployment bug

* fix
This commit is contained in:
Vikhyath Mondreti
2026-03-18 21:39:13 -07:00
committed by GitHub
parent a2c08e19a8
commit 5f7a980c5f
2 changed files with 2 additions and 0 deletions

View File

@@ -796,6 +796,7 @@ describe('Schedule Deploy Utilities', () => {
expect(mockOnConflictDoUpdate).toHaveBeenCalledWith({
target: expect.any(Array),
targetWhere: expect.objectContaining({ type: 'isNull' }),
set: expect.objectContaining({
blockId: 'block-1',
cronExpression: '0 9 * * *',

View File

@@ -138,6 +138,7 @@ export async function createSchedulesForDeploy(
workflowSchedule.blockId,
workflowSchedule.deploymentVersionId,
],
targetWhere: isNull(workflowSchedule.archivedAt),
set: setValues,
})