From c9f1a202fdac78f545f8e344ba9be9402b7b4b5c Mon Sep 17 00:00:00 2001 From: Michal Cieslar Date: Thu, 5 Sep 2024 17:10:17 +0200 Subject: [PATCH] fix: fix downloading all buton action --- .../api/user/mutations/downloadResourcesMutation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/frontend/src/modules/resource/api/user/mutations/downloadResourcesMutation.ts b/apps/frontend/src/modules/resource/api/user/mutations/downloadResourcesMutation.ts index 10c71d2..6555226 100644 --- a/apps/frontend/src/modules/resource/api/user/mutations/downloadResourcesMutation.ts +++ b/apps/frontend/src/modules/resource/api/user/mutations/downloadResourcesMutation.ts @@ -20,7 +20,7 @@ export const useDownloadResourcesMutation = ( const response = await HttpService.post({ url: `/buckets/${payload.bucketName}/resources/export`, body: { - ids: payload.ids, + ids: [], }, headers: { Authorization: `Bearer ${payload.accessToken}`, @@ -29,11 +29,11 @@ export const useDownloadResourcesMutation = ( }); if (!response.success) { - throw new ApiError("DownloadException", { + throw new ApiError('DownloadException', { apiResponseError: response.body.context, message: mapper.map(response.statusCode), - statusCode: response.statusCode - }) + statusCode: response.statusCode, + }); } return response.body;