Skip to content

Commit

Permalink
Merge pull request #2640 from refugies-info/luis/get-recent-dispositi…
Browse files Browse the repository at this point in the history
…fs-tweak

fix(server): 🐛 Don't make assumptions about the department parameter
  • Loading branch information
kaaloo authored Feb 14, 2025
2 parents e88ce0a + 26a61ac commit d469d61
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 d469d61

Please sign in to comment.