feat(core): Update endpoint to update a workflow, to support updating the workflow parent folder (no-chagelog) (#13906)

This commit is contained in:
Ricardo Espinoza
2025-03-17 12:06:52 -04:00
committed by GitHub
parent d0fdb11499
commit 3a5cc4ae95
4 changed files with 68 additions and 15 deletions

View File

@@ -349,7 +349,7 @@ export class WorkflowsController {
const forceSave = req.query.forceSave === 'true';
let updateData = new WorkflowEntity();
const { tags, ...rest } = req.body;
const { tags, parentFolderId, ...rest } = req.body;
Object.assign(updateData, rest);
const isSharingEnabled = this.license.isSharingEnabled();
@@ -366,6 +366,7 @@ export class WorkflowsController {
updateData,
workflowId,
tags,
parentFolderId,
isSharingEnabled ? forceSave : true,
);