Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update route.ts

Kiran Kd419946a13e8
diff --git a/apps/web/app/api/cron/import/csv/route.ts b/apps/web/app/api/cron/import/csv/route.ts
index 4a8ec51f66..1dfafb64dd 100644
--- a/apps/web/app/api/cron/import/csv/route.ts
+++ b/apps/web/app/api/cron/import/csv/route.ts
@@ -57,8 +57,9 @@ interface ErrorLink {
error: string;
}
-const MAX_ROWS_PER_EXECUTION = 500;
+const MAX_ROWS_PER_EXECUTION = 100;
+// POST /api/cron/import/csv
export async function POST(req: Request) {
console.time("import:csv");
@@ -317,6 +318,8 @@ const processMappedLinks = async ({
result.success && !!result.data,
);
+ console.log(successfulMappings);
+
//// Process the tags ////
let selectedTags = successfulMappings
.map((result) => result.data.tags || [])