Skip to content

Commit

Permalink
fix: min distance
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebigard committed Oct 18, 2023
1 parent e7de076 commit 0c19332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/trainingLinks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const getLBALink = async (wish: IWish): Promise<string> => {
}

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(",")
Expand Down

0 comments on commit 0c19332

Please sign in to comment.