mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Update endpoint to update a workflow, to support updating the workflow parent folder (no-chagelog) (#13906)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user