Skip to content

Commit

Permalink
fix other broken links; remove stray console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisgsmith committed Jun 28, 2024
1 parent 35b515b commit a0b3d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app-services/collections/report-configuration-download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface QueryParams {
}

export const downloadFinalReport = ({ projectId, reportConfigId, jobId }: QueryParams) => {
const uri = `projects/${projectId}/report_configs/${reportConfigId}/jobs/${jobId}/downloads`;
const uri = `/projects/${projectId}/report_configs/${reportConfigId}/jobs/${jobId}/downloads`;

apiGetBlob(uri)
.then((file) => {
Expand All @@ -23,7 +23,7 @@ export const downloadFinalReport = ({ projectId, reportConfigId, jobId }: QueryP
};

export const useGetReportStatus = ({ projectId, reportConfigId, jobId }: QueryParams, opts: ClientQueryOptions) => {
const uri = `projects/${projectId}/report_configs/${reportConfigId}/jobs/${jobId}`;
const uri = `/projects/${projectId}/report_configs/${reportConfigId}/jobs/${jobId}`;

return useQuery({
queryKey: [`reportStatus`, reportConfigId, jobId],
Expand Down
1 change: 0 additions & 1 deletion src/app-services/fetch-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export const apiPost = (path: string, payload?: JSON | FormData, opts?: OptsType
options.body = (isFormData ? payload : JSON.stringify(payload)) as BodyInit;
}

console.log('test options:', options);
return commonFetch(root, path, options);
};

Expand Down

0 comments on commit a0b3d13

Please sign in to comment.