Authored by OF1706

less suggest

... ... @@ -94,9 +94,9 @@ exports.getSearchData = (params, channel) => {
let filters = Object.assign(searchHandler.handleFilterDataAll(result[2].data, params),
finalResult.search.leftContent.sort);
let termsSuggestion = _.get(result[2],'data.suggestion.terms_suggestion',false);
let termsSuggestion = _.get(result[2], 'data.suggestion.terms_suggestion', false);
filters.checkedConditions.conditions = _.concat(filters.checkedConditions.conditions,
filters.checkedConditions.conditions = _.concat(filters.checkedConditions.conditions,
finalResult.search.leftContent.checked);
... ... @@ -119,10 +119,10 @@ exports.getSearchData = (params, channel) => {
suggestSecond: finalResult.search.suggestSecond
});
if(finalResult.search.changedQuery === 'Y') {
finalResult.search.suggestFirst = finalResult.search.suggest[0];
finalResult.search.suggestSecond = _.reverse(_.slice(_.reverse(finalResult.search.suggest)));
}
if (finalResult.search.changedQuery === 'Y') {
finalResult.search.suggestFirst = finalResult.search.suggest[0];
finalResult.search.suggestSecond = _.reverse(_.slice(_.reverse(finalResult.search.suggest)));
}
finalResult.criteo = {skn: searchHandler.getCriteo(_.get(finalResult.search, 'goods'))};
}
... ...