Fix query for current MatrixChat for ticket

This commit is contained in:
Ben 2022-04-30 16:03:39 +02:00
parent 037b95aded
commit 95481a289b
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -44,7 +44,7 @@ class ChatMapper extends QBMapper
->from('upschooling_chats') ->from('upschooling_chats')
->where( ->where(
$qb->expr()->eq('ticket_id', $qb->createNamedParameter($ticketId, IQueryBuilder::PARAM_INT)), $qb->expr()->eq('ticket_id', $qb->createNamedParameter($ticketId, IQueryBuilder::PARAM_INT)),
$qb->expr()->isNull('end_date') $qb->expr()->isNull('date_end')
); );
return $this->findEntity($qb); return $this->findEntity($qb);
} }