From 310692539b803c72a7c88f9d6e99665f3ae9ae1d Mon Sep 17 00:00:00 2001 From: Craig Harshbarger Date: Wed, 31 Jul 2024 14:13:05 -0500 Subject: [PATCH] Rename the endpoint and service method --- src/components/FlowRunLogsDownloadButton.vue | 2 +- src/services/WorkspaceFlowRunsApi.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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', })