🤖 Auto commit for release 'develop' on 2025-06-04

This commit is contained in:
JC5
2025-06-04 19:18:26 +02:00
parent 51e58f8d88
commit 0b45506e52
8 changed files with 40 additions and 39 deletions

View File

@@ -443,8 +443,8 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface, UserGroupInte
public function resetHistory(PiggyBank $piggyBank): void
{
$piggyBank->piggyBankEvents()->delete();
foreach($piggyBank->accounts as $account) {
if(0 !== bccomp('0',$account->pivot->current_amount)) {
foreach ($piggyBank->accounts as $account) {
if (0 !== bccomp('0', $account->pivot->current_amount)) {
event(new ChangedAmount($piggyBank, $account->pivot->current_amount, null, null));
}
}