Api cache #51

Merged
KevinMidboe merged 18 commits from api_cache into master 2017-10-22 16:19:37 +00:00
Showing only changes of commit 1925c2a5e3 - Show all commits

View File

@@ -13,10 +13,9 @@ function searchRequestController(req, res) {
Promise.resolve()
.then(() => {
if (user) {
return searchHistory.create(user, query);
if (user !== 'false') {
searchHistory.create(user, query);
}
return null;
})
.then(() => requestRepository.searchRequest(query, page, type))
.then((searchResult) => {