mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 00:01:49 +00:00
add missing capture move on first time deploy (#5496)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user