diff --git a/app/init.php b/app/init.php index 354140f286..cd97fba276 100644 --- a/app/init.php +++ b/app/init.php @@ -1161,6 +1161,7 @@ App::setResource('dbForConsole', function (Group $pools, Cache $cache) { ->setMetadata('host', \gethostname()) ->setMetadata('project', 'console') ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS); + return $database; }, ['pools', 'cache']);