Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-18 14:02:42 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-18 14:02:42 +0300
commite20c051ebc3abb114deffb55ae736ad471f85b60 (patch)
treeed5579cc03b8672f499c70e2fac21e59ae976969 /lib
parent519c37ca3f8e5e8655072bb8c2968e2e81debb51 (diff)
Fix id selection
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/BackgroundJob/GenerateUserSettings.php4
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();