diff --git a/app/api/cart/route.ts b/app/api/cart/route.ts index 916e589..75264e1 100644 --- a/app/api/cart/route.ts +++ b/app/api/cart/route.ts @@ -27,7 +27,7 @@ export async function POST(request: Request) { ); } - const { success } = await apiRatelimit?.limit(user.id); + const { success } = await apiRatelimit?.limit(user.id ?? ""); if (!success && process.env.VERCEL_ENV === "production") { return new NextResponse("Too Many Requests! try again in 1 min", {