Reenable worker call
This commit is contained in:
parent
c56e4222dc
commit
910a76812a
|
@ -362,9 +362,9 @@ class Authentication
|
||||||
// User::updateLastActivity($user_record['uid']);
|
// User::updateLastActivity($user_record['uid']);
|
||||||
|
|
||||||
// Regularly update suggestions
|
// Regularly update suggestions
|
||||||
// if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) {
|
if (Contact\Relation::areSuggestionsOutdated($user_record['uid'])) {
|
||||||
// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']);
|
Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $user_record['uid']);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($login_initial) {
|
if ($login_initial) {
|
||||||
|
|
|
@ -107,9 +107,9 @@ class OAuth
|
||||||
// User::updateLastActivity($token['uid']);
|
// User::updateLastActivity($token['uid']);
|
||||||
|
|
||||||
// Regularly update suggestions
|
// Regularly update suggestions
|
||||||
// if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
|
if (Contact\Relation::areSuggestionsOutdated($token['uid'])) {
|
||||||
// Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
|
Worker::add(Worker::PRIORITY_MEDIUM, 'UpdateSuggestions', $token['uid']);
|
||||||
// }
|
}
|
||||||
|
|
||||||
return $token;
|
return $token;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue