Updated to latest Next.js and ESlint version

This commit is contained in:
Ahmad 2024-10-15 19:55:03 -04:00
parent 862816858c
commit 73dda49ece
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
11 changed files with 704 additions and 576 deletions

View file

@ -6,8 +6,9 @@ import { db } from '@/lib/db';
export async function GET(
req: Request,
{ params }: { params: { cardId: string } }
props: { params: Promise<{ cardId: string }> }
) {
const params = await props.params;
try {
const { orgId, userId } = auth();

View file

@ -5,8 +5,9 @@ import { db } from '@/lib/db';
export async function GET(
req: Request,
{ params }: { params: { cardId: string } }
props: { params: Promise<{ cardId: string }> }
) {
const params = await props.params;
try {
const { orgId, userId } = auth();

View file

@ -7,7 +7,7 @@ import { stripe } from '@/lib/stripe';
export async function POST(req: Request) {
const body = await req.text();
const signature = headers().get('Stripe-Signature') as string;
const signature = (await headers()).get('Stripe-Signature') as string;
let event: Stripe.Event;