From fab0ef3ddcd204fc6774d38fe9bb0b040c88b0a7 Mon Sep 17 00:00:00 2001 From: Arnaud AMBROSELLI Date: Mon, 29 Jul 2024 21:17:02 +0200 Subject: [PATCH] fix: consultSiteUrl --- api-node/src/utils/bathing_water/bathing_water.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api-node/src/utils/bathing_water/bathing_water.ts b/api-node/src/utils/bathing_water/bathing_water.ts index 86f909eb..11535db5 100644 --- a/api-node/src/utils/bathing_water/bathing_water.ts +++ b/api-node/src/utils/bathing_water/bathing_water.ts @@ -249,10 +249,10 @@ function getBathingWaterLatestResultDate( return latestResultDate; } -const consultSiteUrl = new URL( - 'https://baignades.sante.gouv.fr/baignades/consultSite.do', -); function buildBathingWaterUrl(bathingWater: BathingWater): string { + const consultSiteUrl = new URL( + 'https://baignades.sante.gouv.fr/baignades/consultSite.do', + ); const consultSiteQuery: any = { dptddass: bathingWater.dptddass, site: bathingWater.id_site,