fix(wallet): absorb cash left on old owner type
Deposits credited before customer type was set stayed on owner_type 0 and assets ignored them. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -89,6 +89,7 @@ class WalletController extends Controller
|
||||
$customer = auth('customer')->user();
|
||||
$customerId = (int) $customer->id;
|
||||
$ownerType = (int) $customer->type;
|
||||
$balanceService->absorbMismatchedOwnerTypeBalances($customerId, $ownerType);
|
||||
|
||||
$wallets = Wallet::query()
|
||||
->where('owner', $customerId)
|
||||
|
||||
Reference in New Issue
Block a user