mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
feat: update worker class
This commit is contained in:
1 parent
47b206c445
commit
7844a74c1a
2 files changed
+19
-35
No files matched your search
@@ -180,7 +180,10 @@ abstract class Worker
|
||||
$dbPool = $register->get('dbPool');
|
||||
$namespace = "_$internalId";
|
||||
$pdo = $dbPool->getPDO($database);
|
||||
$dbForProject = DatabasePool::getDatabase($pdo, $cache, $namespace);
|
||||
$dbForProject = DatabasePool::wait(
|
||||
DatabasePool::getDatabase($pdo, $cache, $namespace),
|
||||
'projects'
|
||||
);
|
||||
|
||||
return $dbForProject;
|
||||
}
|
||||
@@ -201,7 +204,10 @@ abstract class Worker
|
||||
|
||||
$namespace = "_console";
|
||||
$pdo = $dbPool->getPDO($database);
|
||||
$dbForConsole = DatabasePool::getDatabase($pdo, $cache, $namespace);
|
||||
$dbForConsole = DatabasePool::wait(
|
||||
DatabasePool::getDatabase($pdo, $cache, $namespace),
|
||||
'_metadata'
|
||||
);
|
||||
|
||||
return $dbForConsole;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user