chore: add logs to deletes worker
This commit is contained in:
parent
7a4898fadd
commit
d0f234e726
|
@ -178,12 +178,16 @@ abstract class Worker
|
|||
|
||||
$pools = $register->get('pools'); /** @var \Utopia\Pools\Group $pools */
|
||||
|
||||
Console::log("Getting project DB for {$project->getId()}");
|
||||
|
||||
if ($project->isEmpty() || $project->getId() === 'console') {
|
||||
return $this->getConsoleDB();
|
||||
}
|
||||
|
||||
$databaseName = $project->getAttribute('database');
|
||||
|
||||
var_dump(self::$databases);
|
||||
|
||||
if (isset(self::$databases[$databaseName])) {
|
||||
$database = self::$databases[$databaseName];
|
||||
$database->setNamespace('_' . $project->getInternalId());
|
||||
|
|
Loading…
Reference in a new issue