Skip to content

Commit

Permalink
Merge pull request #341 from Duplexmedia/laravel-scout-tntsearch-driv…
Browse files Browse the repository at this point in the history
…er_issues_338

🐛 fixing #338
  • Loading branch information
nticaric authored Jul 29, 2022
2 parents b98729b + fa156fb commit e48c84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engines/TNTSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function performSearch(Builder $builder, array $options = [])
public function map(Builder $builder, $results, $model)
{
if (empty($results['ids'])) {
return Collection::make();
return $model->newCollection([]);
}

$keys = collect($results['ids'])->values()->all();
Expand Down

0 comments on commit e48c84d

Please sign in to comment.