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) => {