diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 6dc883a1f0..1c8d9d5021 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -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); }