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