From 82dc3c210f3bf4e3879de03fad8e91d003aa370d Mon Sep 17 00:00:00 2001 From: Antoine Jeanneney Date: Mon, 8 Jul 2024 17:12:03 +0200 Subject: [PATCH] improve date stat log --- .../src/modules/statistic/service/saveStatisticsOfDocument.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/generic/backend/src/modules/statistic/service/saveStatisticsOfDocument.ts b/packages/generic/backend/src/modules/statistic/service/saveStatisticsOfDocument.ts index fdebeb1c..c454fb80 100644 --- a/packages/generic/backend/src/modules/statistic/service/saveStatisticsOfDocument.ts +++ b/packages/generic/backend/src/modules/statistic/service/saveStatisticsOfDocument.ts @@ -70,7 +70,9 @@ async function saveStatisticsOfDocument( sourceName: document.source, }, treatmentDuration: humanTreatment.treatment.duration, - lastUpdateDate: humanTreatment.treatment.lastUpdateDate, + treatmentLastUpdateDate: new Date( + humanTreatment.treatment.lastUpdateDate, + ).toISOString(), userName: user.name, }, });