1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

$collectionsConfig fix

This commit is contained in:
shimon 2023-10-27 19:06:16 +03:00
parent 07ef5535ef
commit 917a4e9ab1

View file

@ -81,7 +81,7 @@ class DeleteOrphanedProjects extends Action
$dbForProject->setNamespace('_' . $project->getInternalId());
$collectionsCreated = $dbForProject->count(Database::METADATA);
$message = ' (' . $collectionsCreated . ') collections where found on project (' . $project->getId() . '))';
if ($collectionsCreated < ($totalProjects + 2)) {
if ($collectionsCreated < ($collectionsConfig + 2)) {
Console::error($message);
$orphans++;
} else {