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