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:
anovazzi1 2023-11-20 19:56:08 -03:00
commit 0ef14241f0

View file

@ -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,
});