Skip to content

Commit

Permalink
Fixed Record activity filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Mar 13, 2024
1 parent 851f57e commit 7fe00c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entity/Subscribers/ActivitySubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use JuniWalk\Nestor\Chronicler;
use JuniWalk\Nestor\Entity\Attributes\ActivityOverride;
use JuniWalk\Nestor\Entity\Attributes\TargetIgnore;
use JuniWalk\Nestor\Entity\Record;
use JuniWalk\Nestor\Enums\Action;
use JuniWalk\Nestor\Interfaces\ParamsProvider;
use JuniWalk\Nestor\Interfaces\TargetProvider;
Expand Down Expand Up @@ -140,7 +141,7 @@ private function process(Action $action, object $target): void
return;
}

if (!$changes || $target instanceof Activity) {
if (!$changes || $target instanceof Record) {
return;
}

Expand Down

0 comments on commit 7fe00c4

Please sign in to comment.