mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Added locking to short URL creation when checking if URL exists
This commit is contained in:
@@ -58,7 +58,7 @@ class VisitsStatsHelper implements VisitsStatsHelperInterface
|
||||
|
||||
/** @var ShortUrlRepositoryInterface $repo */
|
||||
$repo = $this->em->getRepository(ShortUrl::class);
|
||||
if (! $repo->shortCodeIsInUse($identifier->shortCode(), $identifier->domain(), $spec)) {
|
||||
if (! $repo->shortCodeIsInUse($identifier, $spec)) {
|
||||
throw ShortUrlNotFoundException::fromNotFound($identifier);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user