0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 08:42:42 +00:00

Stubbing out tests for searching

This commit is contained in:
Scott Tolksdorf
2017-01-11 19:56:57 -08:00
parent dfcb04fd09
commit a405c7cfb2
2 changed files with 59 additions and 17 deletions

View File

@@ -93,7 +93,15 @@ const BrewData = {
return BrewData.get({ editId });
},
search : (query, req={}) => {
search : (query, pagniation, sorting, permissions) => {
//search with query, add in `published = false`
// filter out editId and text
//if admin, removed published=false, remove filtering editId
//defaults with page and count
//returns a non-text version of brews
//assume sanatized ?