Skip to content

Commit

Permalink
complete optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed May 2, 2024
1 parent f19f45c commit d4e3ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HasStatuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function scopeCurrentStatus(Builder $builder, ...$names)
function (Builder $query) use ($names) {
$query
->whereIn('name', $names)
->whereIn(
->where(
'id',
function (QueryBuilder $subQuery) {
$subQuery
Expand Down Expand Up @@ -109,7 +109,7 @@ public function scopeOtherCurrentStatus(Builder $builder, ...$names)
function (Builder $query) use ($names) {
$query
->whereNotIn('name', $names)
->whereIn(
->where(
'id',
function (QueryBuilder $subQuery) {
$subQuery
Expand Down

0 comments on commit d4e3ad7

Please sign in to comment.