From c56e4222dcdac3a4e496a28b87f94e9d5adeb6a2 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 1 Dec 2022 05:50:34 +0000 Subject: [PATCH] Debug the failing test --- src/Security/Authentication.php | 8 ++++---- src/Security/OAuth.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Security/Authentication.php b/src/Security/Authentication.php index 62318bedbf..a9bf70d214 100644 --- a/src/Security/Authentication.php +++ b/src/Security/Authentication.php @@ -359,12 +359,12 @@ class Authentication $this->dba->update('user', ['login_date' => DateTimeFormat::utcNow()], ['parent-uid' => $user_record['uid'], 'account_removed' => false]); - User::updateLastActivity($user_record['uid']); +// 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) { diff --git a/src/Security/OAuth.php b/src/Security/OAuth.php index 27a3dfa11b..eb4f68b7fd 100644 --- a/src/Security/OAuth.php +++ b/src/Security/OAuth.php @@ -104,12 +104,12 @@ class OAuth } Logger::debug('Token found', $token); - User::updateLastActivity($token['uid']); +// 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; } -- 2.39.5