From 1d23016358c625ca3e5e5c4c7b1e025d61c89e60 Mon Sep 17 00:00:00 2001 From: Ally Shaban Date: Fri, 27 Oct 2023 11:39:11 +0300 Subject: [PATCH] fixed a bug on delete --- gofr-backend/lib/routes/dataSources.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gofr-backend/lib/routes/dataSources.js b/gofr-backend/lib/routes/dataSources.js index 37630290..e5a169d9 100644 --- a/gofr-backend/lib/routes/dataSources.js +++ b/gofr-backend/lib/routes/dataSources.js @@ -47,10 +47,10 @@ function destroyPartition(partitionName, partitionID) { fhirAxios.expunge(resource, expungeParams, partitionName).then(() => { resolve(); }).catch((err) => { - logger.error(err); if(resource === 'Basic') { return resolve() } + logger.error(err); reject(); }); }).catch((err) => {