From 1ba029a8b034d560a5b64a801376202c3ad3ca3c Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Fri, 14 Jun 2024 16:51:48 -0300 Subject: [PATCH] feat: Add endpoint_name field to saveFlowToDatabase function --- src/frontend/src/controllers/API/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index dfc01345f..8aced1fd0 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -127,6 +127,7 @@ export async function saveFlowToDatabase(newFlow: { style?: FlowStyleType; is_component?: boolean; folder_id?: string; + endpoint_name?: string; }): Promise { try { const response = await api.post(`${BASE_URL_API}flows/`, { @@ -135,6 +136,7 @@ export async function saveFlowToDatabase(newFlow: { description: newFlow.description, is_component: newFlow.is_component, folder_id: newFlow.folder_id === "" ? null : newFlow.folder_id, + endpoint_name: newFlow.endpoint_name, }); if (response.status !== 201) {