mirror of
https://github.com/ZSCGR/CloudFlare-ImgBed.git
synced 2026-08-13 04:03:42 +08:00
fix: restore batch delete error handling syntax
This commit is contained in:
@@ -13,6 +13,7 @@ const corsHeaders = {
|
||||
};
|
||||
|
||||
export async function onRequestPost(context) {
|
||||
try {
|
||||
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