diff options
author | Joas Schilling <coding@schilljs.com> | 2023-01-20 07:21:22 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-20 07:21:22 +0100 |
commit | 1aba0e22ba152e87f80eb08a5e28d8611cd51877 (patch) | |
tree | b61a9dd550e7e2403d6f5b8a97c6983da97120e1 /apps/dav/lib/BackgroundJob | |
parent | 5e3a3c0c8faa45489aa6ac610728b4177501c198 (diff) | |
download | nextcloud-server-1aba0e22ba152e87f80eb08a5e28d8611cd51877.tar.gz nextcloud-server-1aba0e22ba152e87f80eb08a5e28d8611cd51877.zip |
Fix WHERE condition when selecting user's availability for the status automation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/BackgroundJob')
-rw-r--r-- | apps/dav/lib/BackgroundJob/UserStatusAutomation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php b/apps/dav/lib/BackgroundJob/UserStatusAutomation.php index bbd92d903ee..94feadcae93 100644 --- a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php +++ b/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(); |