From 8deb45a358fc698248ca7ec3f686064aef3577e4 Mon Sep 17 00:00:00 2001 From: abhinav-grd Date: Tue, 28 Sep 2021 12:47:16 +0530 Subject: [PATCH] updates collection delete to use the new API --- src/services/collectionService.ts | 2 +- src/utils/strings/englishConstants.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/collectionService.ts b/src/services/collectionService.ts index 276ad5153..5375defd0 100644 --- a/src/services/collectionService.ts +++ b/src/services/collectionService.ts @@ -474,7 +474,7 @@ export const deleteCollection = async ( const token = getToken(); await HTTPService.delete( - `${ENDPOINT}/collections/${collectionID}`, + `${ENDPOINT}/collections/v2/${collectionID}`, null, null, { 'X-Auth-Token': token } diff --git a/src/utils/strings/englishConstants.tsx b/src/utils/strings/englishConstants.tsx index 56fe9c851..51a7e088a 100644 --- a/src/utils/strings/englishConstants.tsx +++ b/src/utils/strings/englishConstants.tsx @@ -360,8 +360,7 @@ const englishConstants = { <>

are you sure you want to delete this album?

- all files that are unique to this album will be permanently - deleted + all files that are unique to this album will be moved to trash

),