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

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/36260/head
Joas Schilling 3 years ago
parent 5e3a3c0c8f
commit 1aba0e22ba
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
  1. 2
      apps/dav/lib/BackgroundJob/UserStatusAutomation.php

@ -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();

Loading…
Cancel
Save