Skip to content

Commit

Permalink
Remove the concatenation from query builder and
Browse files Browse the repository at this point in the history
replace with a comma instead...

Signed-off-by: Anna Larch <anna@nextcloud.com>
  • Loading branch information
miaulalala committed Sep 23, 2022
1 parent 164cabe commit 2bfbc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/MessageMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ public function getUnanalyzed(int $lastRun, array $mailboxIds): array {
$select = $qb->select('*')
->from($this->getTableName())
->where(
$qb->expr()->lte('sent_at', $qb->createNamedParameter($lastRun. IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT),
$qb->expr()->lte('sent_at', $qb->createNamedParameter($lastRun, IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT),
$qb->expr()->eq('structure_analyzed', $qb->createNamedParameter(false, IQueryBuilder::PARAM_BOOL), IQueryBuilder::PARAM_BOOL),
$qb->expr()->in('mailbox_id', $qb->createNamedParameter($mailboxIds, IQueryBuilder::PARAM_INT_ARRAY), IQueryBuilder::PARAM_INT_ARRAY),
)->orderBy('sent_at', 'ASC');
Expand Down

0 comments on commit 2bfbc0a

Please sign in to comment.