Remove unused contacts

This commit is contained in:
Michael 2020-12-05 21:07:48 +00:00
parent f9994548c1
commit 2b8adf5073
4 changed files with 70 additions and 5 deletions

View file

@ -74,8 +74,9 @@ class UpdateContacts
$count = 0;
foreach ($ids as $id) {
Worker::add(PRIORITY_LOW, "UpdateContact", $id);
++$count;
if (Worker::add(PRIORITY_LOW, "UpdateContact", $id)) {
++$count;
}
}
Logger::info('Initiated update for federated contacts', ['count' => $count]);