mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
fix for #988
This commit is contained in:
parent
920c7a93bc
commit
8f57222098
@ -138,6 +138,12 @@ class ImportRoutine
|
||||
private function createImportTag(): Tag
|
||||
{
|
||||
Log::debug('Now in createImportTag()');
|
||||
|
||||
if($this->journals->count() < 1) {
|
||||
Log::info(sprintf('Will not create tag, %d journals imported.', $this->journals->count()));
|
||||
return new Tag;
|
||||
}
|
||||
|
||||
/** @var TagRepositoryInterface $repository */
|
||||
$repository = app(TagRepositoryInterface::class);
|
||||
$repository->setUser($this->job->user);
|
||||
|
Loading…
Reference in New Issue
Block a user