mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: lock domain purchase if already launched
This commit is contained in:
@@ -20,7 +20,7 @@ class DomainPurchaseRepository extends ServiceEntityRepository
|
||||
{
|
||||
return $this->createQueryBuilder('dp')
|
||||
->select('COUNT(dp)')
|
||||
->where('dp.domainOrderedAt not NULL')
|
||||
->where('dp.domainOrderedAt IS NOT NULL')
|
||||
->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ class DomainPurchaseRepository extends ServiceEntityRepository
|
||||
{
|
||||
return $this->createQueryBuilder('dp')
|
||||
->select('COUNT(dp)')
|
||||
->where('dp.domainOrderedAt is NULL')
|
||||
->where('dp.domainOrderedAt IS NULL')
|
||||
->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user