From 57cead54617c623e8d549cb5ccdb2af82f6f353f Mon Sep 17 00:00:00 2001 From: Zikriya Date: Thu, 1 Feb 2024 16:21:46 +0500 Subject: [PATCH] getBulkCabns api bug fixed related isDefault --- app/controllers/api/v1/currencies.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/currencies.ts b/app/controllers/api/v1/currencies.ts index 84d246e..bb4b242 100644 --- a/app/controllers/api/v1/currencies.ts +++ b/app/controllers/api/v1/currencies.ts @@ -537,7 +537,7 @@ module.exports = function (router: any) { if (user && user._id) { embeddedDocumentQuery.$or = [ { createdByusers: new mongoose.Types.ObjectId(user._id) }, - { isDefault: true }, + { isDefault: false }, ]; } else { embeddedDocumentQuery["isDefault"] = true;