Skip to content

Commit

Permalink
Merge pull request #2639 from PrefectHQ/rename-logs-download-endpoint
Browse files Browse the repository at this point in the history
Update flow run logs download api to match rename
  • Loading branch information
pleek91 authored Aug 1, 2024
2 parents 6dab378 + 3106925 commit 2cdb117
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 2cdb117

Please sign in to comment.