Fix error when not-existing import job is submitted.

This commit is contained in:
James Cole
2017-02-26 11:48:38 +01:00
parent 2116486fe0
commit b23eb07018
2 changed files with 4 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ class CreateImport extends Command
$job = $jobRepository->create($type);
$this->line(sprintf('Created job "%s"...', $job->key));
Artisan::call('firefly:encrypt', ['file' => $file, 'key' => $job->key]);
Artisan::call('firefly:encrypt-file', ['file' => $file, 'key' => $job->key]);
$this->line('Stored import data...');
$job->configuration = $configurationData;