diff --git a/src/components/FlowRunLogsDownloadButton.vue b/src/components/FlowRunLogsDownloadButton.vue index 25f2e9b83..fcde4ba66 100644 --- a/src/components/FlowRunLogsDownloadButton.vue +++ b/src/components/FlowRunLogsDownloadButton.vue @@ -21,7 +21,7 @@ loading.value = true try { - await api.flowRuns.downloadFlowRunLogsCsv(flowRun.id, flowRun.name) + await api.flowRuns.downloadFlowRunLogs(flowRun.id, flowRun.name) } catch (error) { console.error(error) diff --git a/src/services/WorkspaceFlowRunsApi.ts b/src/services/WorkspaceFlowRunsApi.ts index 56b689b64..ab06cbef0 100644 --- a/src/services/WorkspaceFlowRunsApi.ts +++ b/src/services/WorkspaceFlowRunsApi.ts @@ -146,8 +146,8 @@ export class WorkspaceFlowRunsApi extends WorkspaceApi { return this.delete(`/${flowRunId}`) } - public async downloadFlowRunLogsCsv(flowRunId: string, flowRunName: string | null): Promise { - const { data } = await this.get(`/${flowRunId}/download-logs-csv`, { + public async downloadFlowRunLogs(flowRunId: string, flowRunName: string | null): Promise { + const { data } = await this.get(`/${flowRunId}/logs/download`, { responseType: 'stream', })