0.1.07 文件树拖拽与多思维导图
This commit is contained in:
@@ -86,7 +86,8 @@ async function handleCreateRequest(request: Request) {
|
||||
siblingQuery.is("parent_id", null);
|
||||
}
|
||||
|
||||
const { count: siblingCount = 0, error: countError } = await siblingQuery;
|
||||
const { count: rawSiblingCount, error: countError } = await siblingQuery;
|
||||
const siblingCount = rawSiblingCount ?? 0;
|
||||
|
||||
if (countError) {
|
||||
return NextResponse.json({ error: countError.message }, { status: 500 });
|
||||
|
||||
Reference in New Issue
Block a user