Reenable worker call

This commit is contained in:
Michael 2022-12-01 05:53:18 +00:00
parent c56e4222dc
commit 910a76812a
2 changed files with 6 additions and 6 deletions

View File

@ -362,9 +362,9 @@ class Authentication
// User::updateLastActivity($user_record['uid']);
// Regularly update suggestions
// if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) {
// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']);
// }
if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) {
Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']);
}
}
if ($login_initial) {

View File

@ -107,9 +107,9 @@ class OAuth
// User::updateLastActivity($token['uid']);
// Regularly update suggestions
// if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
// }
if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
}
return $token;
}