1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Update app/controllers/api/storage.php

Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
This commit is contained in:
Damodar Lohani 2021-10-28 16:44:53 +05:45 committed by GitHub
parent cb6873af95
commit 3f0e0d6867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1106,7 +1106,7 @@ App::put('/v1/storage/buckets/:bucketId/files/:fileId')
$file = $dbForInternal->getDocument('bucket_' . $bucketId, $fileId);
if ($file->isEmpty() || $file->getAttribute('bucketId') != $bucketId) {
if ($file->isEmpty() || $file->getAttribute('bucketId') !== $bucketId) {
throw new Exception('File not found', 404);
}