mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
fix(schedules): deployment bug (#3666)
* fix(schedules): deployment bug * fix
This commit is contained in:
committed by
GitHub
parent
a2c08e19a8
commit
5f7a980c5f
@@ -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 * * *',
|
||||
|
||||
@@ -138,6 +138,7 @@ export async function createSchedulesForDeploy(
|
||||
workflowSchedule.blockId,
|
||||
workflowSchedule.deploymentVersionId,
|
||||
],
|
||||
targetWhere: isNull(workflowSchedule.archivedAt),
|
||||
set: setValues,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user