Search-Index integration + cache flush on start

This commit is contained in:
NGPixel
2017-02-12 15:40:43 -05:00
parent 8af9212837
commit 12ea967a84
13 changed files with 259 additions and 24 deletions

View File

@@ -13,7 +13,7 @@ module.exports = (socket) => {
socket.on('search', (data, cb) => {
cb = cb || _.noop
entries.search(data.terms).then((results) => {
search.find(data.terms).then((results) => {
return cb(results) || true
})
})