Skip to content

Commit

Permalink
quick fix for #113
Browse files Browse the repository at this point in the history
  • Loading branch information
mlomb authored Jun 20, 2024
1 parent 2419ab3 commit 9271c96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pipeline/process/DatabaseBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9271c96

Please sign in to comment.