Lower priority for removing item

This commit is contained in:
Michael 2019-02-03 23:59:16 +00:00
parent 633d04049b
commit 97fb2202cb

View file

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