1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +12:00

Merge branch '1.4.x' into fix-error-logging

This commit is contained in:
Khushboo Verma 2023-11-17 00:20:41 +05:30
commit 18994d308a

View file

@ -54,7 +54,7 @@ class DeleteOrphanedProjects extends Action
$totalProjects = $dbForConsole->count('projects');
Console::success("Found a total of: {$totalProjects} projects");
$orphans = 1;
$orphans = 0;
$cnt = 0;
$count = 0;
$limit = 30;
@ -90,7 +90,7 @@ class DeleteOrphanedProjects extends Action
/**
* +2 = audit+abuse
*/
if ($collectionsCreated === (count($collectionsConfig) + 2)) {
if ($collectionsCreated >= (count($collectionsConfig) + 2)) {
Console::log($msg . ' ignoring....');
continue;
}
@ -135,6 +135,6 @@ class DeleteOrphanedProjects extends Action
$count = $count + $sum;
}
Console::log('Iterated through ' . $count - 1 . '/' . $totalProjects . ' projects found ' . $orphans - 1 . ' orphans');
Console::log('Iterated through ' . $count - 1 . '/' . $totalProjects . ' projects found ' . $orphans . ' orphans');
}
}