From ec28585a9477bbd378995efcdb9d076bc4a6d3f7 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Fri, 23 Sep 2022 17:03:29 +0200 Subject: [PATCH] Remove the concatenation from query builder and replace with a comma instead... Signed-off-by: Anna Larch --- lib/Db/MessageMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/MessageMapper.php b/lib/Db/MessageMapper.php index b63896374a..ee3b8d6cb9 100644 --- a/lib/Db/MessageMapper.php +++ b/lib/Db/MessageMapper.php @@ -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');