Skip to content

Commit ba009d2

Browse files
committed
release 4.1.3
1 parent 39f3ea1 commit ba009d2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

changelog.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [4.1.3] - 2020-03-20
10+
### Added
11+
Added a patch from version 4.2.1 #150
12+
913
## [4.1.2] - 2019-01-20
1014
### Added
1115
- add `$amountFloat` to Transaction model
@@ -448,7 +452,8 @@ The operation is now executed in the transaction and updates the new `refund` fi
448452
- Exceptions: AmountInvalid, BalanceIsEmpty.
449453
- Models: Transfer, Transaction.
450454

451-
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/4.1.2...HEAD
455+
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/4.1.3...HEAD
456+
[4.1.3]: https://github.com/bavix/laravel-wallet/compare/4.1.2...4.1.3
452457
[4.1.2]: https://github.com/bavix/laravel-wallet/compare/4.1.1...4.1.2
453458
[4.1.1]: https://github.com/bavix/laravel-wallet/compare/4.1.0...4.1.1
454459
[4.1.0]: https://github.com/bavix/laravel-wallet/compare/4.0.1...4.1.0

src/Commands/RefreshBalance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function multiUpdate(): void
8989
->connection()
9090
->table($wallet)
9191
->joinSub($availableBalance, 'b', $joinClause, null, null, 'left')
92-
->update(['balance' => app(DbService::class)->raw('b.balance')]);
92+
->update(["$wallet.balance" => app(DbService::class)->raw('ifnull(b.balance, 0)')]);
9393
}
9494

9595
}

0 commit comments

Comments
 (0)