Skip to content

Commit

Permalink
send link to app
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro committed Apr 5, 2024
1 parent 14ffcd3 commit f7f4c2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api-node/src/getters/drinking_water.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ async function getDrinkingWaterFromUdi({
bacteriological:
checkPrelevementConformityBacteriological(test_result),
},
link: `https://recosante-api-node.fabrique.social.gouv.fr/hubeau-prelevement?code_prelevement=${test_result.code_prelevement}`,
drinkingWater: {
parameters_count: test_result.parameters_count,
prelevement_code: test_result.code_prelevement,
Expand All @@ -114,6 +115,8 @@ async function getDrinkingWaterFromUdi({
updated_at: dayjs(drinkingWater.diffusion_date).format('YYYY-MM-DD'),
};

console.log(JSON.stringify({ drinkingWaterIndicatorJ0AndJ1 }, null, 2));

const drinkingWaterIndicator: Indicator = {
slug: IndicatorsSlugEnum.drinking_water,
name: indicatorsObject[IndicatorsSlugEnum.drinking_water].name,
Expand Down

0 comments on commit f7f4c2e

Please sign in to comment.