Skip to content

Commit

Permalink
Merge pull request #7312 from nextcloud/fix/semantic-error-in-unanaly…
Browse files Browse the repository at this point in the history
…zed-method

🐛 Remove the concatenation from query builder and
  • Loading branch information
miaulalala authored Oct 13, 2022
2 parents 8e67f12 + ec28585 commit 6112cc5
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 6112cc5

Please sign in to comment.