Skip to content

Commit

Permalink
Reset if
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBean committed Aug 15, 2024
1 parent 6becb7e commit e472855
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,10 @@ public function find(mixed ...$values): ?BaseResource
foreach ($combined as $key => $value) {
if ($baseResource->getCastType($key) === 'date') {
$this->builder->whereDate($key, '=', $value);
} elseif ($baseResource->getCastType($key) === 'guid') {
$this->builder->whereRaw("$key eq $value");
} else {
if ($baseResource->getCastType($key) === 'guid') {
$this->builder->whereRaw("$key eq $value");
} else {
$this->builder->where($key, '=', $value);
}
$this->builder->where($key, '=', $value);
}
}

Expand Down

0 comments on commit e472855

Please sign in to comment.