add missing capture move on first time deploy (#5496)

This commit is contained in:
HugoCasa
2025-03-21 00:31:23 +01:00
committed by GitHub
parent e16d6299f5
commit 46797f0727
2 changed files with 19 additions and 0 deletions
@@ -391,6 +391,14 @@
deployment_message: deploymentMsg || undefined
}
})
await CaptureService.moveCapturesAndConfigs({
workspace: $workspaceStore!,
path: fakeInitialPath,
requestBody: {
new_path: $pathStore
},
runnableKind: 'flow'
})
if ($primaryScheduleStore && $primaryScheduleStore.enabled) {
await createSchedule($pathStore)
}
@@ -471,6 +471,17 @@
}
})
if (!initialPath) {
await CaptureService.moveCapturesAndConfigs({
workspace: $workspaceStore!,
path: fakeInitialPath,
requestBody: {
new_path: script.path
},
runnableKind: 'script'
})
}
const scheduleExists =
initialPath != '' &&
(await ScheduleService.existsSchedule({