- Changed numeric fields from typed as number to 'any' in raw query results - Properly convert Prisma Decimal/BigInt types to JavaScript numbers - Fixes TypeError: e.totalPnL.toFixed is not a function - All numeric values (totalPnL, avgPnL, avgADX, etc.) now converted with Number() Issue: Prisma returns Decimal objects from aggregation queries which don't have toFixed() method. Frontend expects plain numbers for .toFixed(2) formatting.
4.5 KiB
4.5 KiB