1
0
Fork 0
mirror of synced 2024-06-14 00:34:51 +12:00

fix creating default bucket

This commit is contained in:
Damodar Lohani 2022-02-28 13:39:19 +05:45
parent 46a03e7cff
commit 6aec8ad02c

View file

@ -164,6 +164,8 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) {
'$write' => ['role:all'],
'search' => 'buckets Default',
]));
$bucket = $dbForConsole->getDocument('buckets', 'default');
Console::success('[Setup] - Creating files collection for default bucket...');
$files = $collections['files'] ?? [];
@ -196,7 +198,7 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) {
]);
}
$dbForConsole->createCollection('bucket_' . 'default', $attributes, $indexes);
$dbForConsole->createCollection('bucket_' . $bucket->getInternalId(), $attributes, $indexes);
}
Console::success('[Setup] - Server database init completed...');