Commit bd985926 authored by Hsinli's avatar Hsinli

addd

parent 3fab101e
Pipeline #8747 passed with stage
in 5 seconds
...@@ -57,6 +57,7 @@ class searchHistoryService extends Service { ...@@ -57,6 +57,7 @@ class searchHistoryService extends Service {
filter.where.house_style = type; filter.where.house_style = type;
} }
let searchHistoryList = await ctx.realestateModel.SearchHistory.findAll(filter); let searchHistoryList = await ctx.realestateModel.SearchHistory.findAll(filter);
let list = [];
if (searchHistoryList.length > 0) { if (searchHistoryList.length > 0) {
for (let i in searchHistoryList) { for (let i in searchHistoryList) {
if (list.indexOf(searchHistoryList[i].key_word) === -1) { if (list.indexOf(searchHistoryList[i].key_word) === -1) {
...@@ -64,7 +65,6 @@ class searchHistoryService extends Service { ...@@ -64,7 +65,6 @@ class searchHistoryService extends Service {
} }
} }
} }
ctx.logger.info(list);
ret = { ret = {
results: list, results: list,
count: list.length count: list.length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment