From e7c7fedf8bfb33b36cd6f47a21e09328db3d2187 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Thu, 29 Aug 2024 12:47:23 -0400 Subject: [PATCH] bug fix --- .../collections/collectionId/deleteCollectionById.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/api/controllers/collections/collectionId/deleteCollectionById.ts b/lib/api/controllers/collections/collectionId/deleteCollectionById.ts index 1e21809e..83807a7e 100644 --- a/lib/api/controllers/collections/collectionId/deleteCollectionById.ts +++ b/lib/api/controllers/collections/collectionId/deleteCollectionById.ts @@ -57,8 +57,8 @@ export default async function deleteCollection( }, }); - await removeFolder({ filePath: `archives/${collectionId}` }); - await removeFolder({ filePath: `archives/preview/${collectionId}` }); + removeFolder({ filePath: `archives/${collectionId}` }); + removeFolder({ filePath: `archives/preview/${collectionId}` }); await removeFromOrders(userId, collectionId); @@ -100,8 +100,8 @@ async function deleteSubCollections(collectionId: number) { where: { id: subCollection.id }, }); - await removeFolder({ filePath: `archives/${subCollection.id}` }); - await removeFolder({ filePath: `archives/preview/${subCollection.id}` }); + removeFolder({ filePath: `archives/${subCollection.id}` }); + removeFolder({ filePath: `archives/preview/${subCollection.id}` }); } }