Touch journals so issue #1036 is fixed.

This commit is contained in:
James Cole
2017-12-04 20:57:33 +01:00
parent 462439a5ab
commit 1b56765da3
11 changed files with 11 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ class SetCategory implements ActionInterface
$name = $this->action->action_value;
$category = Category::firstOrCreateEncrypted(['name' => $name, 'user_id' => $journal->user->id]);
$journal->categories()->sync([$category->id]);
$journal->touch();
Log::debug(sprintf('RuleAction SetCategory set the category of journal #%d to budget #%d ("%s").', $journal->id, $category->id, $category->name));
return true;