From ce7ef42b610be0de9c3be6e6e9cd8399f595c9b9 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 20 Jan 2025 18:01:07 +1300 Subject: [PATCH] Fix getProjectDB resource --- app/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/init.php b/app/init.php index f8dec38394..67f40f19c8 100644 --- a/app/init.php +++ b/app/init.php @@ -1501,7 +1501,7 @@ App::setResource('dbForPlatform', function (Group $pools, Cache $cache) { return $database; }, ['pools', 'cache']); -App::setResource('getProjectDB', function (Group $pools, PoolConnection $connectionForProject, Database $dbForPlatform, $cache) { +App::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform, PoolConnection $connectionForProject, $cache) { $databases = []; return function (Document $project) use ($pools, $connectionForProject, $dbForPlatform, $cache, &$databases) { @@ -1552,7 +1552,7 @@ App::setResource('getProjectDB', function (Group $pools, PoolConnection $connect return $database; }; -}, ['pools', 'dbForPlatform', 'cache']); +}, ['pools', 'dbForPlatform', 'connectionForProject', 'cache']); App::setResource('cache', function (Group $pools) { $list = Config::getParam('pools-cache', []);