Lower priority for removing item
This commit is contained in:
parent
633d04049b
commit
97fb2202cb
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue