mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 07:43:12 +08:00
Added feedback to ImportedLinksProcessor
This commit is contained in:
@@ -256,9 +256,9 @@ DQL;
|
||||
return $qb->getQuery()->getOneOrNullResult();
|
||||
}
|
||||
|
||||
public function importedUrlExists(ImportedShlinkUrl $url, string $source, bool $importShortCodes): bool
|
||||
public function importedUrlExists(ImportedShlinkUrl $url, bool $importShortCodes): bool
|
||||
{
|
||||
$findConditions = ['importSource' => $source];
|
||||
$findConditions = ['importSource' => $url->source()];
|
||||
if ($importShortCodes) {
|
||||
$findConditions['shortCode'] = $url->shortCode();
|
||||
} else {
|
||||
|
||||
@@ -32,5 +32,5 @@ interface ShortUrlRepositoryInterface extends ObjectRepository
|
||||
|
||||
public function findOneMatching(string $url, array $tags, ShortUrlMeta $meta): ?ShortUrl;
|
||||
|
||||
public function importedUrlExists(ImportedShlinkUrl $url, string $source, bool $importShortCodes): bool;
|
||||
public function importedUrlExists(ImportedShlinkUrl $url, bool $importShortCodes): bool;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user