Skip to content

Commit

Permalink
Rename the endpoint and service method
Browse files Browse the repository at this point in the history
  • Loading branch information
pleek91 committed Jul 31, 2024
1 parent 6dab378 commit 3106925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/FlowRunLogsDownloadButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/services/WorkspaceFlowRunsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export class WorkspaceFlowRunsApi extends WorkspaceApi {
return this.delete(`/${flowRunId}`)
}

public async downloadFlowRunLogsCsv(flowRunId: string, flowRunName: string | null): Promise<void> {
const { data } = await this.get<string>(`/${flowRunId}/download-logs-csv`, {
public async downloadFlowRunLogs(flowRunId: string, flowRunName: string | null): Promise<void> {
const { data } = await this.get<string>(`/${flowRunId}/logs/download`, {
responseType: 'stream',
})

Expand Down

0 comments on commit 3106925

Please sign in to comment.