1
0
Fork 0
mirror of synced 2024-08-28 00:21:50 +12:00

delete unnecessary project collections task

This commit is contained in:
shimon 2023-06-14 19:01:34 +03:00
parent f2705c30a3
commit 3286279d3c

View file

@ -60,8 +60,8 @@ class DeleteProjectCollections extends Action
$projects = [$console]; $projects = [$console];
$count = 0; $count = 0;
$limit = 30; $limit = 50;
$sum = 30; $sum = 50;
$offset = 0; $offset = 0;
while (!empty($projects)) { while (!empty($projects)) {
foreach ($projects as $project) { foreach ($projects as $project) {
@ -73,7 +73,7 @@ class DeleteProjectCollections extends Action
continue; continue;
} }
Console::info("Getting stats for {$project->getId()}"); Console::info("Deleting collections for {$project->getId()}");
try { try {
$db = $project->getAttribute('database'); $db = $project->getAttribute('database');