Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LHBruneton-C2C committed May 2, 2024
1 parent f93c34b commit ce3ecaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/api/metadata-converter/src/lib/iso19139/read-parts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce3ecaf

Please sign in to comment.