From ce3ecafd8cdb69b6897bb3988213d8e0fc9fcb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure-H=C3=A9l=C3=A8ne=20Bruneton?= Date: Thu, 2 May 2024 12:54:44 +0200 Subject: [PATCH] wip --- libs/api/metadata-converter/src/lib/iso19139/read-parts.ts | 2 +- libs/api/metadata-converter/src/lib/iso19139/write-parts.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts b/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts index 674feff624..5639fc0739 100644 --- a/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +++ b/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts @@ -434,7 +434,7 @@ export function getUpdateFrequencyFromCustomPeriod( } else if (days <= 7) { return { per: 'week', - updatedTimes: Math.round(7 / days), + updatedTimes: Math.round(7 / days), // FIXME: every 2 days will become 4 times a week here (7/2 = 3.5) } } else if (days) { return { diff --git a/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts b/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts index 21b54ca1c0..15139b86bb 100644 --- a/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +++ b/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts @@ -220,7 +220,7 @@ export function getISODuration(updateFrequency: UpdateFrequencyCustom): string { else duration.hours = Math.round(24 / updateFrequency.updatedTimes) break case 'week': - duration.days = Math.round(7 / updateFrequency.updatedTimes) + duration.days = Math.round(7 / updateFrequency.updatedTimes) // FIXME: 3 times a week will become every 2 days here (7/3 = 2.33) break case 'month': if (updateFrequency.updatedTimes <= 1) duration.months = 1