fix: fixed bulk deleting empty list of keys

This commit is contained in:
mrjvs 2025-09-18 21:45:32 +02:00
parent 6b03e1c82f
commit 099ebec85e

View File

@ -112,6 +112,9 @@ export async function deleteCDNFile(namespace: CDNNamespace, key: string): Promi
}
export async function bulkDeleteCdnFiles(namespace: CDNNamespace, keys: string[]): Promise<void> {
if (keys.length === 0) {
return;
}
if (keys.length > 1000) {
throw new Error('Cannot bulk delete more than 1000 CDN files in one batch');
}