feat(API): add support for private flows in saveFlowStore function
The saveFlowStore function in the API controller now includes a new parameter called "private". This parameter is used to determine whether the flow should be saved as a private flow or not. If the "publicFlow" variable is false, the "private" parameter will be set to true, indicating that the flow should be saved as a private flow. The "status" field in the saved flow object is also updated accordingly to reflect the flow's privacy status.
This commit is contained in:
parent
2cbf563b45
commit
0ef14241f0
1 changed files with 1 additions and 0 deletions
|
|
@ -569,6 +569,7 @@ export async function saveFlowStore(
|
|||
is_component: newFlow.is_component,
|
||||
parent: newFlow.parent,
|
||||
tags: tags,
|
||||
private: !publicFlow,
|
||||
status: publicFlow ? "Public" : "Private",
|
||||
last_tested_version: newFlow.last_tested_version,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue