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 => {
|
scoreAndSearch(q.from, q.to, scoreQueryObj).then(searchResults => {
|
||||||
|
|
||||||
// TODO hier könnten Suchergebnisse gefiltert werden: für Textsuche oder Exludes....
|
|
||||||
response.data = searchResults
|
response.data = searchResults
|
||||||
|
response = searchResults
|
||||||
res.json(response)
|
res.json(response)
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
// TODO error handling
|
// TODO error handling
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user