Merge pull request #36308 from nextcloud/backport/36260/stable25

[stable25] Fix WHERE condition when selecting user's availability for the status…
This commit is contained in:
Joas Schilling 2023-01-24 08:46:11 +01:00 committed by GitHub
commit b72d3dcecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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