diff --git a/server/src/services/trainingLinks.service.ts b/server/src/services/trainingLinks.service.ts index e6dd381e01..18b04621a5 100644 --- a/server/src/services/trainingLinks.service.ts +++ b/server/src/services/trainingLinks.service.ts @@ -149,7 +149,7 @@ const getLBALink = async (wish: IWish): Promise => { } if (formations.length > 1 && wLat && wLon) { - let distance = 9999 + let distance = 999999999 for (const [i, iFormation] of formations.entries()) { if (iFormation.lieu_formation_geo_coordonnees) { const [fLat, fLon] = iFormation.lieu_formation_geo_coordonnees.split(",")