Major bug for JSONAPI

This commit is contained in:
0880
2026-01-17 19:29:58 +03:30
parent dd648bc50f
commit bd4a4bd6ac

View File

@@ -314,7 +314,7 @@ def JSONAPI(func):
and isinstance(result[1], dict)
and isinstance(result[0], int)
):
return JSONResponse(result[1], result[0])
return JSONResponse(kwargs["request"], result[1], result[0])
raise RuntimeError("Return value of JSONAPI route is not a dictionary")
return JSONResponse(kwargs["request"], result)