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:
parent
ebae35bf66
commit
7bd79d8302
1 changed files with 2 additions and 0 deletions
|
|
@ -556,6 +556,7 @@ export async function saveFlowStore(
|
||||||
style?: FlowStyleType;
|
style?: FlowStyleType;
|
||||||
is_component?: boolean;
|
is_component?: boolean;
|
||||||
parent?: string;
|
parent?: string;
|
||||||
|
last_tested_version?: string;
|
||||||
},
|
},
|
||||||
tags: string[],
|
tags: string[],
|
||||||
publicFlow = false
|
publicFlow = false
|
||||||
|
|
@ -569,6 +570,7 @@ export async function saveFlowStore(
|
||||||
parent: newFlow.parent,
|
parent: newFlow.parent,
|
||||||
tags: tags,
|
tags: tags,
|
||||||
status: publicFlow ? "public" : "private",
|
status: publicFlow ? "public" : "private",
|
||||||
|
last_tested_version: newFlow.last_tested_version,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.status !== 201) {
|
if (response.status !== 201) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue