From 0ef14241f07c71ef65828f1a5cc239d98b0fd9b0 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 20 Nov 2023 19:56:08 -0300 Subject: [PATCH] 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. --- src/frontend/src/controllers/API/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 3257c57af..a754d1563 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -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, });