fix:exclude wishlists from performance chart

This commit is contained in:
hackerESQ
2024-10-24 20:14:14 -05:00
parent 9788070a16
commit cd47abddc6
4 changed files with 12 additions and 3 deletions
@@ -51,6 +51,7 @@ new class extends Component {
SUM(total_dividends_earned) as total_dividends_earned
*/
')
->withoutWishlists()
->groupBy('date')
->orderBy('date');
@@ -60,7 +61,7 @@ new class extends Component {
$dailyChangeQuery->whereDate('date', '>=', now()->{$filterMethod['method']}(...$filterMethod['args']));
}
// dd($dailyChangeQuery->toSql());
$dailyChange = $dailyChangeQuery->get();
return [