Skip to content

Commit

Permalink
getBulkCabns api bug fixed related isDefault reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
Zikriya committed Feb 1, 2024
1 parent 57cead5 commit 3f17c9c
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: false },
{ isDefault: true },
];
} else {
embeddedDocumentQuery["isDefault"] = true;
Expand Down

0 comments on commit 3f17c9c

Please sign in to comment.