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
+6
View File
@@ -46,6 +46,12 @@ class DailyChange extends Model
});
});
}
public function scopeWithoutWishlists($query) {
return $query->whereHas('portfolio', function ($query) {
$query->where('portfolios.wishlist', 0);
});
}
public function portfolio()
{