Fix order at PostgreSQL

https://github.com/nextcloud/spreed/issues/7863

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2023-03-16 16:40:44 -03:00
parent 651a7a916e
commit 93cc70d055

View file

@ -129,7 +129,8 @@ class Messages {
$query->select('*')
->from('talk_internalsignaling')
->where($query->expr()->eq('recipient', $query->createNamedParameter($sessionId)))
->andWhere($query->expr()->lte('timestamp', $query->createNamedParameter($time)));
->andWhere($query->expr()->lte('timestamp', $query->createNamedParameter($time)))
->orderBy('id', 'ASC');
$delete = $this->db->getQueryBuilder();
$delete->delete('talk_internalsignaling')