mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
Merge pull request #46221 from nextcloud/backport/46219/stable28
[stable28] fix(DAV): offset not applied
This commit is contained in:
commit
b8b0ad613e
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ use OC\BackgroundJob\QueuedJob;
|
|||
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;
|
||||
|
||||
|
|
@ -98,6 +99,7 @@ class BuildSocialSearchIndexBackgroundJob extends QueuedJob {
|
|||
->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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue