mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
Simply log presence.
This commit is contained in:
parent
09f826ceba
commit
670ab059d1
@ -14,6 +14,7 @@ use FireflyIII\Events\TransactionJournalStored;
|
||||
use FireflyIII\Models\RuleGroup;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class FireRulesForStore
|
||||
@ -43,14 +44,15 @@ class FireRulesForStore
|
||||
public function handle(TransactionJournalStored $event)
|
||||
{
|
||||
// get all the user's rule groups, with the rules, order by 'order'.
|
||||
/** @var User $user */
|
||||
$user = Auth::user();
|
||||
|
||||
$groups = $user->ruleGroups()->with('rules')->orderBy('order','ASC')->get();
|
||||
|
||||
/** @var RuleGroup $group */
|
||||
foreach($groups as $group) {
|
||||
|
||||
}
|
||||
// /** @var User $user */
|
||||
// $user = Auth::user();
|
||||
//
|
||||
// $groups = $user->ruleGroups()->with('rules')->orderBy('order','ASC')->get();
|
||||
//
|
||||
// /** @var RuleGroup $group */
|
||||
// foreach($groups as $group) {
|
||||
//
|
||||
// }
|
||||
Log::debug('FireRulesForStore!');
|
||||
}
|
||||
}
|
@ -9,6 +9,7 @@
|
||||
|
||||
namespace FireflyIII\Handlers\Events;
|
||||
use FireflyIII\Events\TransactionJournalUpdated;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class FireRulesForUpdate
|
||||
@ -35,6 +36,7 @@ class FireRulesForUpdate
|
||||
*/
|
||||
public function handle(TransactionJournalUpdated $event)
|
||||
{
|
||||
Log::debug('Fire rules for update!');
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user