This commit is contained in:
hackerESQ
2025-08-21 21:09:48 -05:00
parent 08cfcceb6a
commit 4196539169
+1 -1
View File
@@ -153,7 +153,7 @@ class DailyChange extends Model
{
return DB::table(DB::raw("({$query->toSql()}) AS daily_query"))
->addBinding($query->getQuery()->getBindings(), 'join')
->select(['date'])
->select('date')
->selectRaw('SUM(total_market_value) AS total_market_value')
->selectRaw('SUM(total_cost_basis) AS total_cost_basis')
->selectRaw('SUM(total_market_gain) AS total_market_gain')