Skip to content

Commit

Permalink
Fix bug that miscounts the initial migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Dec 6, 2023
1 parent 92a1f2a commit 5132cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/logic/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ async function getVoyageStats() {
console.log(`From ${d} as '${fn}'...`);
let results = records.filter(r => r.voyageDate.getTime() >= dset.date.getTime());

// fix bug from initial migration
results = results.filter((r, i) => results.findIndex(f => f.voyageDate === r.voyageDate) === i);

const cp = {} as { [key: string]: CrewPeople };

for (let res of results) {
Expand Down

0 comments on commit 5132cd7

Please sign in to comment.