Skip to content

Commit

Permalink
fix: result_date iso date
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro committed Jul 29, 2024
1 parent 9dd68b7 commit dfcde4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api-node/src/aggregators/bathing_water.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit dfcde4d

Please sign in to comment.