mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update app/controllers/api/storage.php
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
co-authored by
Eldad A. Fux
parent
db85577f4f
commit
abdbdeef35
@@ -219,7 +219,7 @@ App::delete('/v1/storage/buckets/:bucketId')
|
||||
|
||||
$bucket = $dbForInternal->getDocument('buckets', $bucketId);
|
||||
|
||||
if (empty($bucket->getId())) {
|
||||
if ($bucket->isEmpty()) {
|
||||
throw new Exception('Bucket not found', 404);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user