1
1
Fork 0

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 { do {
$items = Item::select(['id'], $condition, ['limit' => 100]); $items = Item::select(['id'], $condition, ['limit' => 100]);
while ($item = Item::fetch($items)) { while ($item = Item::fetch($items)) {
DBA::delete('item', ['id' => $item['id']]); Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE);
} }
DBA::close($items); DBA::close($items);
} while (Item::exists($condition)); } while (Item::exists($condition));