]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveUnusedContacts.php
Issue 11932: Restore SQL performance
[friendica.git] / src / Worker / RemoveUnusedContacts.php
index 6a419963432f56409c8d118714b01fe8954f523f..038376c22c925d199edca8d6d49ec13b905e63fe 100644 (file)
@@ -78,7 +78,7 @@ class RemoveUnusedContacts
                        DBA::delete('post-thread-user', ['author-id' => $contact['id']]);
                        DBA::delete('post-thread-user', ['causer-id' => $contact['id']]);
 
-                       DBA::delete('contact', ['id' => $contact['id']]);
+                       Contact::deleteById($contact['id']);
                        if ((++$count % 1000) == 0) {
                                Logger::info('In removal', ['count' => $count, 'total' => $total]);
                        }