mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Big refactor to remove the deprecated transaction collector.
This commit is contained in:
@@ -91,9 +91,9 @@ class ImportJobRepository implements ImportJobRepositoryInterface
|
||||
Log::debug(sprintf('Now in appendTransactions(%s)', $job->key));
|
||||
$existingTransactions = $this->getTransactions($job);
|
||||
$new = array_merge($existingTransactions, $transactions);
|
||||
Log::debug(sprintf('Old transaction count: %d', \count($existingTransactions)));
|
||||
Log::debug(sprintf('To be added transaction count: %d', \count($transactions)));
|
||||
Log::debug(sprintf('New count: %d', \count($new)));
|
||||
Log::debug(sprintf('Old transaction count: %d', count($existingTransactions)));
|
||||
Log::debug(sprintf('To be added transaction count: %d', count($transactions)));
|
||||
Log::debug(sprintf('New count: %d', count($new)));
|
||||
$this->setTransactions($job, $new);
|
||||
|
||||
return $job;
|
||||
@@ -333,7 +333,7 @@ class ImportJobRepository implements ImportJobRepositoryInterface
|
||||
$json = Crypt::encrypt(json_encode($transactions));
|
||||
|
||||
// set count for easy access
|
||||
$array = ['count' => \count($transactions)];
|
||||
$array = ['count' => count($transactions)];
|
||||
$job->transactions = $array;
|
||||
$job->save();
|
||||
// store file.
|
||||
|
Reference in New Issue
Block a user