max, not min :)

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-08-28 14:18:32 +02:00
parent 62f448edb0
commit 5bbd0708f6
@@ -775,7 +775,7 @@ export class CatalogBuilder {
const duration = readDurationFromConfig(config, {
key: processingIntervalKey,
});
const seconds = Math.min(
const seconds = Math.max(
1,
Math.round(durationToMilliseconds(duration) / 1000),
);