feat(API): add support for saving last tested version of a flow in the flow store

The `saveFlowStore` function in the API controller now accepts an optional `last_tested_version` parameter. This parameter allows the user to specify the last tested version of a flow when saving it to the flow store. The value of `last_tested_version` is now included in the request payload when creating a new flow in the flow store.
This commit is contained in:
anovazzi1 2023-11-16 17:56:14 -03:00
commit 7bd79d8302

View file

@ -556,6 +556,7 @@ export async function saveFlowStore(
style?: FlowStyleType;
is_component?: boolean;
parent?: string;
last_tested_version?: string;
},
tags: string[],
publicFlow = false
@ -569,6 +570,7 @@ export async function saveFlowStore(
parent: newFlow.parent,
tags: tags,
status: publicFlow ? "public" : "private",
last_tested_version: newFlow.last_tested_version,
});
if (response.status !== 201) {