スコープの簡略化
This commit is contained in:
parent
e2f01561a8
commit
f3a5644a32
@ -49,8 +49,7 @@ class Ejaculation extends Model
|
||||
|
||||
public function scopeOnlyWebCheckin(Builder $query)
|
||||
{
|
||||
return $query->where('ejaculations.source', null)
|
||||
->orWhere('ejaculations.source', '<>', Ejaculation::SOURCE_CSV);
|
||||
return $query->where('ejaculations.source', Ejaculation::SOURCE_WEB);
|
||||
}
|
||||
|
||||
public function scopeWithLikes(Builder $query)
|
||||
|
Loading…
Reference in New Issue
Block a user