mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 18:40:12 +00:00
More and improved code for the import routine.
This commit is contained in:
@@ -58,12 +58,12 @@ class ImportJobRepository implements ImportJobRepositoryInterface
|
||||
$importJob->file_type = $fileType;
|
||||
$importJob->key = Str::random(12);
|
||||
$importJob->status = 'new';
|
||||
$importJob->configuration = [];
|
||||
$importJob->extended_status = [
|
||||
'total_steps' => 0,
|
||||
'steps_done' => 0,
|
||||
'import_count' => 0,
|
||||
'importTag' => 0,
|
||||
'errors' => [],
|
||||
'steps' => 0,
|
||||
'done' => 0,
|
||||
'importTag' => 0,
|
||||
'errors' => [],
|
||||
];
|
||||
$importJob->save();
|
||||
|
||||
@@ -157,8 +157,6 @@ class ImportJobRepository implements ImportJobRepositoryInterface
|
||||
$disk->put($newName, $contentEncrypted);
|
||||
Log::debug('Uploaded file', ['name' => $file->getClientOriginalName(), 'size' => $file->getSize(), 'mime' => $file->getClientMimeType()]);
|
||||
}
|
||||
$job->status = 'initialized';
|
||||
$job->save();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user