feat: Add endpoint_name field to saveFlowToDatabase function
This commit is contained in:
parent
ce80e26c50
commit
1ba029a8b0
1 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ export async function saveFlowToDatabase(newFlow: {
|
|||
style?: FlowStyleType;
|
||||
is_component?: boolean;
|
||||
folder_id?: string;
|
||||
endpoint_name?: string;
|
||||
}): Promise<FlowType> {
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue