Skip to content

Commit

Permalink
Also send error on search
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed May 3, 2022
1 parent 3e6722b commit 7b2b1a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/middleware/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ function handleSearchRequest(req, res, params) {
.send(body)
.set('accept', 'application/json')
.end((err, resp) => {
if (resp && resp.body) res.send(resp.body);

if (resp && resp.body) {
res.send(resp.body);
} else {
Expand Down

0 comments on commit 7b2b1a0

Please sign in to comment.