mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 11:19:16 +00:00
Actually use journal [skip ci]
This commit is contained in:
@@ -43,8 +43,6 @@ class ImportStorage
|
|||||||
private $objects;
|
private $objects;
|
||||||
/** @var Collection */
|
/** @var Collection */
|
||||||
private $rules;
|
private $rules;
|
||||||
/** @var TagRepositoryInterface */
|
|
||||||
private $tagRepository;
|
|
||||||
|
|
||||||
/** @var array */
|
/** @var array */
|
||||||
private $transfers = [];
|
private $transfers = [];
|
||||||
|
@@ -47,7 +47,7 @@ trait ImportSupport
|
|||||||
{
|
{
|
||||||
if ($this->rules->count() > 0) {
|
if ($this->rules->count() > 0) {
|
||||||
$this->rules->each(
|
$this->rules->each(
|
||||||
function (Rule $rule) {
|
function (Rule $rule) use($journal) {
|
||||||
Log::debug(sprintf('Going to apply rule #%d to journal %d.', $rule->id, $journal->id));
|
Log::debug(sprintf('Going to apply rule #%d to journal %d.', $rule->id, $journal->id));
|
||||||
$processor = Processor::make($rule);
|
$processor = Processor::make($rule);
|
||||||
$processor->handleTransactionJournal($journal);
|
$processor->handleTransactionJournal($journal);
|
||||||
|
Reference in New Issue
Block a user