[Bug]:
mohamedalwhaidi opened this issue · comments
What happened?
Missing Listener for Points Decrease
I've noticed that the package has a listener for the PointsIncreased
event (PointsIncreasedListener.php
), but there is no dedicated listener for the PointsDecreased
event.
Additionally, while the database migration for experience audits (create_experience_audits_table.php.stub
) has a column for type
that can be 'add', 'remove', 'reset', or 'level_up', it seems that the decrement case is not explicitly stored in the database through a listener.
This could be an important feature for tracking user activities related to points decrement.
Would it be possible to add a listener for the PointsDecreased
event and store this information in the database?
How to reproduce the bug
When I deductPoints the decrement case is not explicitly stored in the database through a listener.
Package Version
0.0.13
PHP Version
8.2.0
Laravel Version
10.0.0
Which operating systems does with happen with?
No response
Notes
No response