mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 21:16:47 +00:00
Extend ImportObject with row hash.
This commit is contained in:
@@ -100,6 +100,10 @@ class CsvImporter implements ImporterInterface
|
||||
$object->setUser($this->job->user);
|
||||
$config = $this->job->configuration;
|
||||
|
||||
// hash the row:
|
||||
$hash = hash('sha256', json_encode($row));
|
||||
$object->importValue('hash', 100, $hash);
|
||||
|
||||
// and this is the point where the specifix go to work.
|
||||
foreach ($config['specifics'] as $name => $enabled) {
|
||||
/** @var SpecificInterface $specific */
|
||||
|
||||
Reference in New Issue
Block a user