Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This commit is contained in:
叁月柒
2026-07-23 10:46:13 +08:00
committed by GitHub
co-authored by Copilot Autofix powered by AI
parent a9d7050ab5
commit 301bbfa0a9
+1 -2
View File
@@ -12,8 +12,7 @@ const corsHeaders = {
'Access-Control-Max-Age': '86400',
};
export async function onRequest(context) {
try {
export async function onRequestPost(context) {
const payload = await context.request.json();
const fileIds = normalizeBatchFileIds(payload?.fileIds, MAX_BATCH_SIZE);
if (fileIds.length === 0) {