1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

fix collection config name

This commit is contained in:
Damodar Lohani 2021-12-14 10:57:48 +05:45
parent 64c719e82c
commit 0f8a3fcea3

View file

@ -70,7 +70,7 @@ App::post('/v1/storage/buckets')
$bucketId = $bucketId === 'unique()' ? $dbForInternal->getId() : $bucketId;
try {
$files = Config::getParam('collections', [])['files'] ?? [];
$files = Config::getParam('subCollections', [])['files'] ?? [];
if(empty($files)) {
throw new Exception('Files collection is not configured.');
}