Skip to content

Commit

Permalink
fix(api): 3517 - suppression du filtre des PDR sur les PDT (#4431)
Browse files Browse the repository at this point in the history
  • Loading branch information
achorein committed Oct 10, 2024
1 parent 5bac5bd commit 82469e6
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions api/src/controllers/elasticsearch/plandetransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,7 @@ router.post("/:action(search|export)", passport.authenticate(["referent"], { ses
if (error) return res.status(400).send({ ok: false, code: ERRORS.INVALID_PARAMS });

// Context filters
let contextFilters = [
{ bool: { must_not: { exists: { field: "deletedAt" } } } },
{
nested: {
path: "pointDeRassemblements",
query: {
bool: {
must: [{ exists: { field: "pointDeRassemblements.matricule" } }, { bool: { must_not: { exists: { field: "pointDeRassemblements.deletedAt" } } } }],
},
},
},
},
];
let contextFilters = [{ bool: { must_not: { exists: { field: "deletedAt" } } } }];

// A head center can only see bus line rattached to his center.
if (user.role === ROLES.HEAD_CENTER) {
Expand Down

0 comments on commit 82469e6

Please sign in to comment.