01
This commit is contained in:
@@ -11,7 +11,7 @@ export async function GET(_: NextRequest, { params }: { params: { slug: string }
|
|||||||
{ returnDocument: "after" }
|
{ returnDocument: "after" }
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!post.value) {
|
if (!post || !post.value) {
|
||||||
return NextResponse.json({ error: "Not found" }, { status: 404 });
|
return NextResponse.json({ error: "Not found" }, { status: 404 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user