Fixed typo

This commit is contained in:
Alejandro Celaya 2022-12-11 18:36:46 +01:00
parent 0952c488be
commit 229dc93132

View File

@ -151,9 +151,9 @@ class ShortUrlRepository extends EntitySpecificationRepository implements ShortU
$qb
->andWhere($qb->expr()->orX(
$qb->expr()->isNull('s.validUntil'),
$qb->expr()->gte('s.validUntil', ':minValidSince'),
$qb->expr()->gte('s.validUntil', ':minValidUntil'),
))
->setParameter('minValidSince', Chronos::now()->toDateTimeString());
->setParameter('minValidUntil', Chronos::now()->toDateTimeString());
}
$this->applySpecification($qb, $filtering->apiKey?->spec(), 's');