Limit batch API payloads to 500 items
This commit is contained in:
1 parent
8bc49a29e3
commit
9ba5fb7c1b
1 file changed
+1
-1
@@ -4,7 +4,7 @@ import { parseRequest } from '@/lib/request';
|
||||
import { json, serverError } from '@/lib/response';
|
||||
import { anyObjectParam } from '@/lib/schema';
|
||||
|
||||
const schema = z.array(anyObjectParam);
|
||||
const schema = z.array(anyObjectParam).max(500);
|
||||
|
||||
export async function POST(request: Request) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user