Skip to content

Commit

Permalink
Bug #227666 [BE] : PC | Prerak List Filter | Filter is not working fo…
Browse files Browse the repository at this point in the history
…r multiple checks (#1529)

* status added in learner list for prerak

* fixed multi filter

* fixed multi filter
  • Loading branch information
Tusharmahajan12 authored Sep 24, 2024
1 parent 35b0368 commit d061c84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/src/program-coordinator/program-coordinator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,12 @@ export class ProgramCoordinatorService {
}

if (body.district) {
userFilter.push(`district: {_in: ["${body.district}"]}`);
userFilter.push(
`district: {_in: ${JSON.stringify(body?.district)}}`,
);
}
if (body.block) {
userFilter.push(`block: {_in: ["${body.block}"]}`);
userFilter.push(`block: {_in: ${JSON.stringify(body?.block)}}`);
}

let filter = [];
Expand Down

0 comments on commit d061c84

Please sign in to comment.