1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

feat: review comments

This commit is contained in:
Christy Jacob 2022-11-17 07:02:51 +00:00
parent d830f5c262
commit 836ab62285
2 changed files with 4 additions and 4 deletions

View file

@ -1108,7 +1108,7 @@ function getDevice($root): Device
$connection = App::getEnv('_APP_CONNECTIONS_STORAGE', '');
$acl = 'private';
$device = '';
$device = STORAGE_DEVICE_LOCAL;
$accessKey = '';
$accessSecret = '';
$bucket = '';
@ -1123,7 +1123,7 @@ function getDevice($root): Device
$region = $dsn->getParam('region');
} catch (\Exception $e) {
Console::error($e->getMessage() . 'Invalid DSN. Defaulting to Local storage.');
$device = 'Local';
$device = STORAGE_DEVICE_LOCAL;
}
switch ($device) {

View file

@ -280,7 +280,7 @@ abstract class Worker
$connection = App::getEnv('_APP_CONNECTIONS_STORAGE', '');
$acl = 'private';
$device = '';
$device = STORAGE_DEVICE_LOCAL;
$accessKey = '';
$accessSecret = '';
$bucket = '';
@ -295,7 +295,7 @@ abstract class Worker
$region = $dsn->getParam('region');
} catch (\Exception $e) {
Console::error($e->getMessage() . 'Invalid DSN. Defaulting to Local storage.');
$device = 'file';
$device = STORAGE_DEVICE_LOCAL;
}
switch ($device) {