fixed empty response, code 204 -> 200
This commit is contained in:
parent
f9157e8e61
commit
5dfb31e91c
@ -86,10 +86,6 @@ function searchHandler(dbConn) {
|
||||
})//.filter(el => !_.isNaN(el.score))*/
|
||||
}
|
||||
// SEND RESPONSE
|
||||
if (_.isEmpty(searchResults)) {
|
||||
res.status(204).json(searchResults)
|
||||
return
|
||||
}
|
||||
// response.data = searchResults
|
||||
// res.json(response)
|
||||
res.json(searchResults)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user