Partly Reverted #6583
authorMichael <heluecht@pirati.ca>
Wed, 6 Feb 2019 07:31:29 +0000 (07:31 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 6 Feb 2019 07:31:29 +0000 (07:31 +0000)
src/Worker/RemoveContact.php

index 08c7c23..00027dc 100644 (file)
@@ -24,7 +24,7 @@ class RemoveContact {
                do {
                        $items = Item::select(['id'], $condition, ['limit' => 100]);
                        while ($item = Item::fetch($items)) {
-                               Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE);
+                               DBA::delete('item', ['id' => $item['id']]);
                        }
                        DBA::close($items);
                } while (Item::exists($condition));