From dfcde4daf1293b263bc5f60d353e57fe39f72e32 Mon Sep 17 00:00:00 2001 From: Arnaud AMBROSELLI Date: Mon, 29 Jul 2024 15:52:17 +0200 Subject: [PATCH] fix: result_date iso date --- api-node/src/aggregators/bathing_water.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api-node/src/aggregators/bathing_water.ts b/api-node/src/aggregators/bathing_water.ts index 75defe9d..10c57bd8 100644 --- a/api-node/src/aggregators/bathing_water.ts +++ b/api-node/src/aggregators/bathing_water.ts @@ -41,6 +41,7 @@ export async function getBathingWaterIndicator() { const municipalities = await prisma.municipality.findMany({ where: { bathing_water_sites: { gt: 0 }, + COM: String(76637), }, orderBy: { DEP: 'desc', @@ -164,7 +165,7 @@ export async function getBathingWaterIndicator() { id_carte: idCarte, isite: site.isite, name: site.nom, - result_date: scrapingResult.result_date, + result_date: dayjs(scrapingResult.result_date).toISOString(), result_value: scrapingResult.result_value, swimming_season_start: scrapingResult.swimming_season_start, swimming_season_end: scrapingResult.swimming_season_end,