Skip to content

Commit

Permalink
Merge pull request #46219 from nextcloud/fix/noid/infinit-BuildSocial…
Browse files Browse the repository at this point in the history
…SearchIndexBackgroundJob

fix(DAV): offset not applied
  • Loading branch information
blizzz authored Jul 1, 2024
2 parents 0166265 + 1d3ff43 commit 7bd2158
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
use OCP\BackgroundJob\QueuedJob;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use Psr\Log\LoggerInterface;

Expand Down Expand Up @@ -59,6 +60,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->executeQuery()->fetchAll();

Expand Down

0 comments on commit 7bd2158

Please sign in to comment.