changed search response structure
This commit is contained in:
parent
3e1d376a93
commit
1fd35504fd
@ -57,8 +57,8 @@ function searchHandler(dbConn) {
|
||||
}
|
||||
scoreAndSearch(q.from, q.to, scoreQueryObj).then(searchResults => {
|
||||
|
||||
// TODO hier könnten Suchergebnisse gefiltert werden: für Textsuche oder Exludes....
|
||||
response.data = searchResults
|
||||
response = searchResults
|
||||
res.json(response)
|
||||
}).catch(e => {
|
||||
// TODO error handling
|
||||
|
||||
Loading…
Reference in New Issue
Block a user