From: Christopher Ng Date: Mon, 31 Jul 2023 19:10:50 +0000 (-0700) Subject: fix: update find due query X-Git-Tag: v28.0.0beta1~601^2~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05e454ee614705ec0c8be264c456b7c647be7c03;p=nextcloud-server.git fix: update find due query Signed-off-by: Christopher Ng --- diff --git a/apps/files_reminders/lib/Db/ReminderMapper.php b/apps/files_reminders/lib/Db/ReminderMapper.php index db753a50b5c..cb079320e5f 100644 --- a/apps/files_reminders/lib/Db/ReminderMapper.php +++ b/apps/files_reminders/lib/Db/ReminderMapper.php @@ -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); }