mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-29 12:14:34 -06:00
This fixes #599
This commit is contained in:
parent
d3a2bf174d
commit
dd1e9ecb32
@ -58,9 +58,11 @@ class Import extends Command
|
||||
{
|
||||
Log::debug('Start start-import command');
|
||||
$jobKey = $this->argument('key');
|
||||
$job = ImportJob::whereKey($jobKey)->first();
|
||||
$job = ImportJob::where('key', $jobKey)->first();
|
||||
if (is_null($job)) {
|
||||
$this->error(sprintf('No job found with key "%s"', $jobKey));
|
||||
|
||||
return;
|
||||
}
|
||||
if (!$this->isValid($job)) {
|
||||
Log::error('Job is not valid for some reason. Exit.');
|
||||
|
Loading…
Reference in New Issue
Block a user