From 836ab62285c9443364cffc0292b07dffdbe9f85e Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 17 Nov 2022 07:02:51 +0000 Subject: [PATCH] feat: review comments --- app/init.php | 4 ++-- src/Appwrite/Resque/Worker.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/init.php b/app/init.php index 2f9f0e2399..50c5ab1a18 100644 --- a/app/init.php +++ b/app/init.php @@ -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) { diff --git a/src/Appwrite/Resque/Worker.php b/src/Appwrite/Resque/Worker.php index d7bedb6f2a..8503e18c3c 100644 --- a/src/Appwrite/Resque/Worker.php +++ b/src/Appwrite/Resque/Worker.php @@ -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) {