From 97fb2202cb3b9408fee0fb4c38543dd5109c6352 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 3 Feb 2019 23:59:16 +0000 Subject: [PATCH] Lower priority for removing item --- src/Worker/RemoveContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/RemoveContact.php b/src/Worker/RemoveContact.php index 00027dca40..08c7c23a77 100644 --- a/src/Worker/RemoveContact.php +++ b/src/Worker/RemoveContact.php @@ -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));