mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 00:13:59 +00:00
wallet batch polishing
This commit is contained in:
@@ -88,7 +88,7 @@ class CallbackBillplzLogic
|
||||
|
||||
$this->updatesTransactionStatus->execute($transaction, $status);
|
||||
|
||||
if($transaction->owner instanceof Wallet) {
|
||||
if($transaction->owner instanceof Wallet && $billPlz->state === ApprovalStatus::APPROVED) {
|
||||
$this->updatesWalletBalance->execute($transaction->owner, $transaction->amount);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class UpdatesWalletBalance extends AbstractUpdateRecord
|
||||
*/
|
||||
public function execute(Wallet $model, $amount) {
|
||||
|
||||
$model->amount = $model + $amount;
|
||||
$model->amount = $model->amount + $amount;
|
||||
return $this->handler($model);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user