forked from wallabag/wallabag
Fix PostgreSQL query
PostgreSQL doesn’t like when we compare interger and boolean :)
This commit is contained in:
@ -48,7 +48,7 @@ class UserRepository extends EntityRepository
|
||||
{
|
||||
return $this->createQueryBuilder('u')
|
||||
->select('count(u)')
|
||||
->andWhere('u.expired = 0')
|
||||
->andWhere('u.expired = false')
|
||||
->getQuery()
|
||||
->getSingleScalarResult();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user