mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-26 16:26:35 -06:00
Fix bug in verification.
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
parent
e10d5e89e5
commit
99aea5ce7a
@ -255,7 +255,7 @@ having transaction_count = 0
|
||||
|
||||
/** @var User $user */
|
||||
foreach ($userRepository->all() as $user) {
|
||||
$sum = $user->transactions()->sum('amount');
|
||||
$sum = strval($user->transactions()->sum('amount'));
|
||||
if (bccomp($sum, '0') !== 0) {
|
||||
$this->error('Error: Transactions for user #' . $user->id . ' (' . $user->email . ') are off by ' . $sum . '!');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user