Skip to content

Commit

Permalink
Update src/Endpoints/Delegates/HandlesMultiSearch.php
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
  • Loading branch information
irevoire and norkunas authored Jul 31, 2024
1 parent 3f1cf90 commit 01a34f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Endpoints/Delegates/HandlesMultiSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public function multiSearch(array $queries = [], array $multiSearchParams = [])
$body[] = $query->toArray();
}

$payload = array_merge(['queries' => $body], $multiSearchParams);

return $this->http->post('/multi-search', $payload);
return $this->http->post('/multi-search', ['queries' => $body, ...$multiSearchParams]);
}
}

0 comments on commit 01a34f4

Please sign in to comment.