Fix: Eagerly load bet_details to fix total_payout calculation
- Add joinedload for bet_details relationship when querying bets - This ensures bet_details are loaded for ALL bets, not just synced ones - Fixes total_payout showing 0 when there are winning bets - Summary is calculated from ALL bets (synced and not synced) as required for server reports
Showing
Please
register
or
sign in
to comment