From 9271c9661139d546aafff0f2335c76568531d479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lombardo?= Date: Thu, 20 Jun 2024 01:10:42 -0300 Subject: [PATCH] quick fix for #113 --- pipeline/process/DatabaseBuilder.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pipeline/process/DatabaseBuilder.ts b/pipeline/process/DatabaseBuilder.ts index 318cd15c..314b563f 100644 --- a/pipeline/process/DatabaseBuilder.ts +++ b/pipeline/process/DatabaseBuilder.ts @@ -437,7 +437,11 @@ export class DatabaseBuilder { const duration = Math.ceil((endDate.getTime() - startDate.getTime()) / 1000); - if (startDate > endDate) throw new Error("Call start date is after end date"); + if (startDate > endDate) { + // TODO: check why this happens + console.error("Call start date is after end date"); + continue; + } if (duration < 1) continue; // skip call finalCalls.push({