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 K797dc8610a50
diff --git a/apps/web/app/api/cron/import/csv/route.ts b/apps/web/app/api/cron/import/csv/route.ts
index 61dd28bf30..4a8ec51f66 100644
--- a/apps/web/app/api/cron/import/csv/route.ts
+++ b/apps/web/app/api/cron/import/csv/route.ts
@@ -60,6 +60,8 @@ interface ErrorLink {
const MAX_ROWS_PER_EXECUTION = 500;
export async function POST(req: Request) {
+ console.time("import:csv");
+
try {
const rawBody = await req.text();
@@ -179,6 +181,8 @@ export async function POST(req: Request) {
});
}
+ console.timeEnd("import:csv");
+
return NextResponse.json("OK");
} catch (error) {
await log({
@@ -438,7 +442,7 @@ const processMappedLinks = async ({
payload: {
...createLinkBodySchema.parse({
...link,
- tagNames: tags || [],
+ tagNames: tags || undefined,
folderId,
}),
},