The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
wip fix types
Kiran Kd0907a93d59a
diff --git a/apps/web/app/api/cron/import/csv/utils.ts b/apps/web/app/api/cron/import/csv/utils.tsindex f4b9d9a933..06f4c9938e 100644--- a/apps/web/app/api/cron/import/csv/utils.ts+++ b/apps/web/app/api/cron/import/csv/utils.ts@@ -32,7 +32,7 @@ export const importLinksFromCSV = async ({})),);- const importedLinks = await bulkCreateLinks(processedLinks);+ const importedLinks = await bulkCreateLinks(processedLinks as any); // TODO: fix typescount += importedLinks.length;diff --git a/apps/web/app/api/links/route.ts b/apps/web/app/api/links/route.tsindex 54a24a93db..ad7da5111e 100644--- a/apps/web/app/api/links/route.ts+++ b/apps/web/app/api/links/route.ts@@ -68,13 +68,13 @@ export const POST = withAuth(});}- // await qstash.publishJSON({- // url: `${APP_DOMAIN_WITH_NGROK}/api/cron/links/event`,- // body: {- // linkId: response.id,- // type: "create",- // },- // });+ await qstash.publishJSON({+ url: `${APP_DOMAIN_WITH_NGROK}/api/cron/links/event`,+ body: {+ linkId: response.id,+ type: "create",+ },+ });return NextResponse.json(response, { headers });} catch (err) {diff --git a/apps/web/app/api/links/sync/route.ts b/apps/web/app/api/links/sync/route.tsindex 02c4377451..f32f147d0d 100644--- a/apps/web/app/api/links/sync/route.ts+++ b/apps/web/app/api/links/sync/route.ts@@ -59,7 +59,7 @@ export const POST = withAuth(async ({ req, session, project }) => {publicStats: false,},}),- bulkCreateLinks(unclaimedLinks),+ bulkCreateLinks(unclaimedLinks as any), // TODO: fix typesprisma.project.update({where: {id: project.id,diff --git a/apps/web/app/api/projects/[slug]/route.ts b/apps/web/app/api/projects/[slug]/route.tsindex 65b87717e8..4a7a0d3fb3 100644--- a/apps/web/app/api/projects/[slug]/route.ts+++ b/apps/web/app/api/projects/[slug]/route.ts@@ -4,8 +4,6 @@ import prisma from "@/lib/prisma";import { deleteProject } from "@/lib/api/projects";import { DEFAULT_REDIRECTS, validSlugRegex } from "@dub/utils";import { isReservedKey } from "@/lib/edge-config";-import { ErrorResponse, handleApiError } from "@/lib/errors";-import { Project } from "@/lib/zod/schemas/projects";// GET /api/projects/[slug] – get a specific projectexport const GET = withAuth(async ({ project, headers }) => {