diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-18 14:02:42 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-18 14:02:42 +0300 |
commit | e20c051ebc3abb114deffb55ae736ad471f85b60 (patch) | |
tree | ed5579cc03b8672f499c70e2fac21e59ae976969 /lib | |
parent | 519c37ca3f8e5e8655072bb8c2968e2e81debb51 (diff) |
Fix id selection
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/BackgroundJob/GenerateUserSettings.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/BackgroundJob/GenerateUserSettings.php b/lib/BackgroundJob/GenerateUserSettings.php index fdc9177..a8b42c2 100644 --- a/lib/BackgroundJob/GenerateUserSettings.php +++ b/lib/BackgroundJob/GenerateUserSettings.php @@ -58,9 +58,9 @@ class GenerateUserSettings extends TimedJob { protected function run($argument): void { $query = $this->connection->getQueryBuilder(); - $query->selectAlias('id', 'max_id') + $query->select('notification_id') ->from('notifications') - ->orderBy('id', 'DESC') + ->orderBy('notification_id', 'DESC') ->setMaxResults(1); $result = $query->executeQuery(); |