1
0
Fork 0

Use centralized function to update contact entries

This commit is contained in:
Michael 2021-09-10 18:21:19 +00:00
commit 9c14eb0c6b
20 changed files with 90 additions and 72 deletions

View file

@ -732,7 +732,7 @@ class Feed
if ($contact['rating'] != $priority) {
Logger::notice('Adjusting priority', ['old' => $contact['rating'], 'new' => $priority, 'id' => $contact['id'], 'uid' => $contact['uid'], 'url' => $contact['url']]);
DBA::update('contact', ['rating' => $priority], ['id' => $contact['id']]);
Contact::update(['rating' => $priority], ['id' => $contact['id']]);
}
}