mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Improved VisitsStatsHelperTest covering visitsForDomain method
This commit is contained in:
@@ -97,7 +97,7 @@ class VisitsStatsHelper implements VisitsStatsHelperInterface
|
||||
{
|
||||
/** @var DomainRepository $domainRepo */
|
||||
$domainRepo = $this->em->getRepository(Domain::class);
|
||||
if ($domain !== 'DEFAULT' && $domainRepo->count(['authority' => $domain]) === 0) {
|
||||
if ($domain !== 'DEFAULT' && ! $domainRepo->domainExists($domain, $apiKey)) {
|
||||
throw DomainNotFoundException::fromAuthority($domain);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user