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');