Fix WHERE condition when selecting user's availability for the status automation

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2023-01-20 07:21:22 +01:00 committed by backportbot-nextcloud[bot]
parent e50d0d2440
commit a305137ae2

View file

@ -176,7 +176,7 @@ class UserStatusAutomation extends TimedJob {
->from('properties')
->where($query->expr()->eq('userid', $query->createNamedParameter($userId)))
->andWhere($query->expr()->eq('propertypath', $query->createNamedParameter($propertyPath)))
->where($query->expr()->eq('propertyname', $query->createNamedParameter($propertyName)))
->andWhere($query->expr()->eq('propertyname', $query->createNamedParameter($propertyName)))
->setMaxResults(1);
$result = $query->executeQuery();