mirror of
https://github.com/ZSCGR/CloudFlare-ImgBed.git
synced 2026-08-13 04:03:42 +08:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
a9d7050ab5
commit
301bbfa0a9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user