Skip to content

Commit

Permalink
status code fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SwarnenduG07 committed Jul 22, 2024
1 parent 641cd98 commit 1436013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/webhook/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function GET(req: Request) {
)
} catch(e: any) {
console.log(e);
return new NextResponse(`Webhook Error: ${e.message}`, {status: 200});
return new NextResponse(`Webhook Error: ${e.message}`, {status: 401});
}
const session = event.data.object as Stripe.Checkout.Session;

Expand Down

0 comments on commit 1436013

Please sign in to comment.