Skip to content

Commit

Permalink
getBulkCabns api bug fixed related isDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikriya committed Feb 1, 2024
1 parent 0fc2cd7 commit 57cead5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/currencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57cead5

Please sign in to comment.