Skip to content

Commit

Permalink
Merge pull request #46221 from nextcloud/backport/46219/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(DAV): offset not applied
  • Loading branch information
blizzz authored Jul 3, 2024
2 parents 47c74a9 + c389599 commit b8b0ad6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use OCA\DAV\CardDAV\CardDavBackend;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use OCP\ILogger;

Expand Down Expand Up @@ -98,6 +99,7 @@ private function buildIndex($offset, $stopAt) {
->from('cards', 'c')
->orderBy('id', 'ASC')
->where($query->expr()->like('carddata', $query->createNamedParameter('%SOCIALPROFILE%')))
->andWhere($query->expr()->gt('id', $query->createNamedParameter((int)$offset, IQueryBuilder::PARAM_INT)))
->setMaxResults(100);
$social_cards = $query->execute()->fetchAll();

Expand Down

0 comments on commit b8b0ad6

Please sign in to comment.