Fix delete recursion
This commit is contained in:
parent
004bb82688
commit
536d36be7d
1 changed files with 1 additions and 6 deletions
|
@ -258,11 +258,8 @@ class DeletesV1 extends Worker
|
|||
// Delete project tables
|
||||
$dbForProject = $this->getProjectDB($projectId, $document);
|
||||
|
||||
$limit = 50;
|
||||
$offset = 0;
|
||||
|
||||
while (true) {
|
||||
$collections = $dbForProject->listCollections($limit, $offset);
|
||||
$collections = $dbForProject->listCollections();
|
||||
|
||||
if (empty($collections)) {
|
||||
break;
|
||||
|
@ -271,8 +268,6 @@ class DeletesV1 extends Worker
|
|||
foreach ($collections as $collection) {
|
||||
$dbForProject->deleteCollection($collection->getId());
|
||||
}
|
||||
|
||||
$offset += $limit;
|
||||
}
|
||||
|
||||
// Delete metadata tables
|
||||
|
|
Loading…
Reference in a new issue