Skip to content

Commit

Permalink
[FEATURE#105983] correction pr
Browse files Browse the repository at this point in the history
Saut de lignes
  • Loading branch information
Thibcabanes committed Feb 21, 2019
1 parent 54a897e commit d52cf92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ChangeRequestManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ public function findByQueryStringAndAggs($query, $from = 0, $size = 99999, $sort
}

$response = $this->fireRequest("POST", "/aggs?q={$query}&from={$from}&size={$size}&sort={$sort}", $body);

$response["hits"]["hits"] = array_map(
function ($hit) {
$change_todos = new ChangeTodos();
$change_todos->fromArray($hit);

return $change_todos;
},
$response["hits"]["hits"]
Expand Down

0 comments on commit d52cf92

Please sign in to comment.