Skip to content

Commit

Permalink
Update HasWallet.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Babichev Maxim authored Nov 8, 2018
1 parent 3763b38 commit ce5a1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasWallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function balance(): MorphMany
{
return $this->transactions()
->selectRaw('payable_id, sum(amount) as total')
->where('confirmed', 1)
->where('confirmed', true)
->groupBy('payable_id');
}

Expand Down

0 comments on commit ce5a1cf

Please sign in to comment.