Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into feat/0.3.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/frontend/src/controllers/API/flow.ts
  • Loading branch information
zgqgit committed Jun 28, 2024
2 parents 078098b + f6d557a commit 9aa1bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/controllers/API/flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function getReportFormApi(flow_id): Promise<any> {
* @throws Will throw an error if fetching fails.
*/
export async function getFlowApi(flowId: string, version: string = 'v1'): Promise<FlowType> {
return axios.get(`/api/${version}/flows/${flowId}`)
return await axios.get(`/api/${version}/flows/${flowId}`)
}

/**
Expand Down Expand Up @@ -197,7 +197,7 @@ export const createCustomFlowApi = async (params: {
export async function updateFlowApi(
updatedFlow: FlowType
): Promise<FlowType> {
return axios.patch(`/api/v1/flows/${updatedFlow.id}`, {
return await axios.patch(`/api/v1/flows/${updatedFlow.id}`, {
name: updatedFlow.name,
data: updatedFlow.data,
description: updatedFlow.description,
Expand Down

0 comments on commit 9aa1bda

Please sign in to comment.