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.

fix bug

Steven Tey9e5747605e33
diff --git a/apps/web/app/api/links/bulk/route.ts b/apps/web/app/api/links/bulk/route.ts
index 8af082462e..13ff9ecb0c 100644
--- a/apps/web/app/api/links/bulk/route.ts
+++ b/apps/web/app/api/links/bulk/route.ts
@@ -1,8 +1,6 @@
import { bulkCreateLinks, processLink } from "@/lib/api/links";
import { withAuth } from "@/lib/auth";
import { NextResponse } from "next/server";
-import prisma from "@/lib/prisma";
-import { capitalize, getBillingStartDate } from "@dub/utils";
import { exceededLimitError } from "@/lib/api/errors";
// POST /api/links/bulk – bulk create up to 100 links
diff --git a/apps/web/app/api/projects/route.ts b/apps/web/app/api/projects/route.ts
index 748c6136b2..13c4c96a31 100644
--- a/apps/web/app/api/projects/route.ts
+++ b/apps/web/app/api/projects/route.ts
@@ -70,6 +70,7 @@ export const POST = withSession(async ({ req, session }) => {
const freeProjects = await prisma.project.count({
where: {
+ plan: "free",
users: {
some: {
userId: session.user.id,