courrier multi account restore compose
This commit is contained in:
parent
8cf5a72f41
commit
f7d6bfb8d2
@ -26,7 +26,7 @@ export async function GET(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Await params as per Next.js requirements
|
// Await params as per Next.js requirements
|
||||||
const { params } = context;
|
const params = await context.params;
|
||||||
const id = params?.id;
|
const id = params?.id;
|
||||||
if (!id) {
|
if (!id) {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
@ -85,7 +85,7 @@ export async function POST(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Await params as per Next.js requirements
|
// Await params as per Next.js requirements
|
||||||
const { params } = context;
|
const params = await context.params;
|
||||||
const id = params?.id;
|
const id = params?.id;
|
||||||
if (!id) {
|
if (!id) {
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user