fixed empty response, code 204 -> 200

This commit is contained in:
Timo Volkmann 2020-06-23 18:54:35 +02:00
parent f9157e8e61
commit 5dfb31e91c

View File

@ -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)