fix(database): add missing 'import json as _json' in api_create_collection_page
This commit is contained in:
@@ -2256,6 +2256,7 @@ async def api_collection_table_data(collection_id: int):
|
|||||||
@router.post("/api/collections/{collection_id:int}/pages")
|
@router.post("/api/collections/{collection_id:int}/pages")
|
||||||
async def api_create_collection_page(collection_id: int, request: Request):
|
async def api_create_collection_page(collection_id: int, request: Request):
|
||||||
"""Create a new page (row) in a collection."""
|
"""Create a new page (row) in a collection."""
|
||||||
|
import json as _json
|
||||||
try:
|
try:
|
||||||
body = await request.json()
|
body = await request.json()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user