]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: update find due query
authorChristopher Ng <chrng8@gmail.com>
Mon, 31 Jul 2023 19:10:50 +0000 (12:10 -0700)
committerChristopher Ng <chrng8@gmail.com>
Thu, 3 Aug 2023 22:30:11 +0000 (15:30 -0700)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/files_reminders/lib/Db/ReminderMapper.php

index db753a50b5c9809a88a07ec1d2cbdc3deb716091..cb079320e5f296956a9c7afaeec341bc37dc0c42 100644 (file)
@@ -73,9 +73,7 @@ class ReminderMapper extends QBMapper {
                        ->from($this->getTableName())
                        ->where($qb->expr()->eq('user_id', $qb->createNamedParameter($user->getUID(), IQueryBuilder::PARAM_STR)))
                        ->andWhere($qb->expr()->eq('file_id', $qb->createNamedParameter($fileId, IQueryBuilder::PARAM_INT)))
-                       ->andWhere($qb->expr()->eq('notified', $qb->createNamedParameter(false, IQueryBuilder::PARAM_BOOL)))
-                       ->orderBy('updated_at', 'DESC')
-                       ->setMaxResults(1);
+                       ->andWhere($qb->expr()->eq('notified', $qb->createNamedParameter(false, IQueryBuilder::PARAM_BOOL)));
 
                return $this->findEntity($qb);
        }