fix: limit episode art to approved arworks
This commit is contained in:
@@ -31,6 +31,11 @@ class Episode extends Model
|
||||
return $this->hasOne(Artwork::class, 'id', 'artwork_id');
|
||||
}
|
||||
|
||||
public function approvedArtworks()
|
||||
{
|
||||
return $this->hasMany(Artwork::class)->whereNotNull('artworks.approved_by');
|
||||
}
|
||||
|
||||
public function artworks()
|
||||
{
|
||||
return $this->hasMany(Artwork::class);
|
||||
|
||||
Reference in New Issue
Block a user