diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-07-31 12:10:50 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-08-08 16:29:12 -0700 |
commit | fb71f8cec51ee004bc340517297e4df82a35d726 (patch) | |
tree | 9f6a88d906e1728df47c5e471affbebb50be04e4 /apps/files_reminders | |
parent | f4c77592570fa2037542130d673423dd213c112c (diff) | |
download | nextcloud-server-fb71f8cec51ee004bc340517297e4df82a35d726.tar.gz nextcloud-server-fb71f8cec51ee004bc340517297e4df82a35d726.zip |
fix: update find due query
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 05e454ee614705ec0c8be264c456b7c647be7c03)
Diffstat (limited to 'apps/files_reminders')
-rw-r--r-- | apps/files_reminders/lib/Db/ReminderMapper.php | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |