Skip to content

Commit

Permalink
Deployment Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
david emioma committed Mar 31, 2024
1 parent 65a63b0 commit 8dd92ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/stores/[storeId]/products/[productId]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function PATCH(
return new NextResponse("Unauthorized", { status: 401 });
}

const { success } = await ratelimit.limit(user.id);
const { success } = await ratelimit.limit(user.id ?? "");

if (!success && process.env.VERCEL_ENV === "production") {
return new NextResponse("Too Many Requests! try again in 1 min", {
Expand Down
2 changes: 1 addition & 1 deletion app/api/stores/[storeId]/products/new/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function POST(
return new NextResponse("Unauthorized", { status: 401 });
}

const { success } = await ratelimit.limit(user.id);
const { success } = await ratelimit.limit(user.id ?? "");

if (!success && process.env.VERCEL_ENV === "production") {
return new NextResponse("Too Many Requests! try again in 1 min", {
Expand Down

0 comments on commit 8dd92ec

Please sign in to comment.