delete orphaned projects task

This commit is contained in:
shimon 2023-11-13 19:27:20 +02:00
parent dd0bf66212
commit 60c0f4c973

View file

@ -86,9 +86,9 @@ class DeleteOrphanedProjects extends Action
$collectionsCreated = $dbForProject->count(Database::METADATA); $collectionsCreated = $dbForProject->count(Database::METADATA);
} }
$msg = '(' . $cnt . ') ignoring found (' . $collectionsCreated . ') collections on project (' . $project->getInternalId() . ') , database (' . $project['database'] . ')'; $msg = '(' . $cnt . ') found (' . $collectionsCreated . ') collections on project (' . $project->getInternalId() . ') , database (' . $project['database'] . ')';
/** /**
* +2 == audit+abuse * +2 = audit+abuse
*/ */
if ($collectionsCreated === (count($collectionsConfig) + 2)) { if ($collectionsCreated === (count($collectionsConfig) + 2)) {
Console::log($msg . ' ignoring....'); Console::log($msg . ' ignoring....');