Skip to content

Commit

Permalink
fix: augmentation du rayon de recherche des ml pour les cfa (#4104)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrmr authored Feb 26, 2025
1 parent 6ebb36f commit 5c74111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/src/common/actions/organismes/organismes.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ export async function getOrganismeDetails(ctx: AuthContext, organismeId: ObjectI
const missionsLocalesAPI = await apiAlternanceClient.geographie.listMissionLocales({
longitude,
latitude,
radius: 100,
});
if (missionsLocalesAPI.length > 0) {
const firstMissionLocale = missionsLocalesAPI[0];
Expand Down
2 changes: 1 addition & 1 deletion server/tests/jest/setupNock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const useNock = () => {
.persist();
nock("https://api.apprentissage.beta.gouv.fr/api")
.get("/geographie/v1/mission-locale")
.query({ latitude: /^\d*\.?\d*$/, longitude: /^\d*\.?\d*$/ })
.query({ latitude: /^\d*\.?\d*$/, longitude: /^\d*\.?\d*$/, radius: /^\d*$/ })
.reply(200, [communes["75001"][0].mission_locale])
.persist();
});
Expand Down

0 comments on commit 5c74111

Please sign in to comment.