From 544b5e6767972d30b4b8ab239ebdd790c1369cdc Mon Sep 17 00:00:00 2001 From: reehals Date: Sun, 20 Apr 2025 11:27:42 -0700 Subject: [PATCH] Update csvAlgorithm.ts --- app/(api)/_utils/csv-ingestion/csvAlgorithm.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/(api)/_utils/csv-ingestion/csvAlgorithm.ts b/app/(api)/_utils/csv-ingestion/csvAlgorithm.ts index 80d5fd4de..403041df1 100644 --- a/app/(api)/_utils/csv-ingestion/csvAlgorithm.ts +++ b/app/(api)/_utils/csv-ingestion/csvAlgorithm.ts @@ -49,7 +49,9 @@ function sortTracks( initialTracks.length = 4; } - return initialTracks; + const tracksSet = Array.from(new Set(initialTracks)); + + return tracksSet; } export default async function csvAlgorithm(