Merge pull request #4878 from wallabag/fix-hash-query

This commit is contained in:
Jérémy Benoist 2021-01-04 06:51:12 +01:00 committed by GitHub
commit 0140b0c262
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,7 +378,9 @@ class EntryRepository extends EntityRepository
{
return $this->createQueryBuilder('e')
->where('e.hashedUrl = :empty')->setParameter('empty', '')
->orWhere('e.hashedUrl is null')
->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
->andWhere('e.url is not null')
->getQuery()
->getResult();
}