mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-07-19 01:06:45 -05:00
fix: fixed bulk deleting empty list of keys
This commit is contained in:
parent
6b03e1c82f
commit
099ebec85e
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user