Update app/controllers/api/storage.php
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
parent
abdbdeef35
commit
696b133881
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ App::put('/v1/storage/buckets/:bucketId')
|
|||
|
||||
$bucket = $dbForInternal->getDocument('buckets', $bucketId);
|
||||
|
||||
if (empty($bucket->getId())) {
|
||||
if ($bucket->isEmpty()) {
|
||||
throw new Exception('Bucket not found', 404);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue