Skip to content

Commit

Permalink
Don't use global scopes for quote existence check (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored May 15, 2024
1 parent 4c68819 commit ee699fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Models/SalesOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Rapidez\Core\Models;

use Illuminate\Database\Eloquent\Builder;
use Rapidez\Core\Models\Scopes\IsActiveScope;

class SalesOrder extends Model
{
Expand Down Expand Up @@ -43,7 +42,7 @@ public function scopeWhereQuoteIdOrCustomerToken(Builder $query, string $quoteId
$query->whereHas(
'quote',
fn ($query) => $query
->withoutGlobalScope(IsActiveScope::class)
->withoutGlobalScopes()
->whereQuoteIdOrCustomerToken($quoteIdMaskOrCustomerToken)
);
}
Expand Down

0 comments on commit ee699fe

Please sign in to comment.