mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
getDevice
This commit is contained in:
parent
610edc9584
commit
d39060e0a8
1 changed files with 2 additions and 2 deletions
|
|
@ -1451,9 +1451,9 @@ App::setResource('deviceForBuilds', function ($project) {
|
|||
return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId());
|
||||
}, ['project']);
|
||||
|
||||
function getDevice(string $root, ?string $connection = null): Device
|
||||
function getDevice(string $root, string $connection = ''): Device
|
||||
{
|
||||
$connection = empty($connection) ? System::getEnv('_APP_CONNECTIONS_STORAGE', '') : System::getEnv($connection, '');
|
||||
$connection = !empty($connection) ? $connection : System::getEnv('_APP_CONNECTIONS_STORAGE', '');
|
||||
|
||||
if (!empty($connection)) {
|
||||
$acl = 'private';
|
||||
|
|
|
|||
Loading…
Reference in a new issue