Skip to content

Commit

Permalink
fix: replace searchPostcodeOnly by search only
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebigard committed Oct 18, 2023
1 parent db29e19 commit 54ffec7
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 @@ -142,7 +142,7 @@ const getLBALink = async (wish: IWish): Promise<string> => {
const postCode = wish.code_insee || wish.code_postal
let wLat, wLon
if (postCode) {
const responseApiAdresse = await apiGeoAdresse.searchPostcodeOnly(postCode)
const responseApiAdresse = await apiGeoAdresse.search(postCode)
if (responseApiAdresse && responseApiAdresse.features.length) {
;[wLon, wLat] = responseApiAdresse.features[0].geometry.coordinates
}
Expand Down

0 comments on commit 54ffec7

Please sign in to comment.