Skip to content

Commit

Permalink
fix(server): 🐛 Don't make assumptions about the department parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaloo committed Feb 14, 2025
1 parent e88ce0a commit 26a61ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const getRecentDispositifsByDepartement = async (
const dispositifs = await getLatestDispositifs({
"typeContenu": "dispositif",
"status": "Actif",
"metadatas.location": { $regex: `^${departement}\\s-` },
"metadatas.location": `${departement}`,
});

const result = dispositifs.map((d) => ({
Expand Down

0 comments on commit 26a61ac

Please sign in to comment.