1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Fixed query to fetch URL to hash

This commit is contained in:
Nicolas Lœuillet 2020-12-22 14:58:07 +01:00
parent d6869fdd2f
commit 5857031262

View file

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