diff --git a/src/app-services/collections/report-configuration-download.ts b/src/app-services/collections/report-configuration-download.ts index 8a4338fe..d0d0414a 100644 --- a/src/app-services/collections/report-configuration-download.ts +++ b/src/app-services/collections/report-configuration-download.ts @@ -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) => { @@ -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], diff --git a/src/app-services/fetch-helpers.ts b/src/app-services/fetch-helpers.ts index af041324..c02a257c 100644 --- a/src/app-services/fetch-helpers.ts +++ b/src/app-services/fetch-helpers.ts @@ -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); };