Debug the failing test

This commit is contained in:
Michael 2022-12-01 05:50:34 +00:00
parent ed1a879b7b
commit c56e4222dc
2 changed files with 8 additions and 8 deletions

View file

@ -359,12 +359,12 @@ class Authentication
$this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()], $this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()],
['parent-uid' => $user_record['uid'], 'account_removed' => false]); ['parent-uid' => $user_record['uid'], 'account_removed' => false]);
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) {

View file

@ -104,12 +104,12 @@ class OAuth
} }
Logger::debug('Token found', $token); Logger::debug('Token found', $token);
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;
} }