fix:exclude wishlists from performance chart
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user