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 {
filter.where.house_style = type;
}
let searchHistoryList = await ctx.realestateModel.SearchHistory.findAll(filter);
let list = [];
if (searchHistoryList.length > 0) {
for (let i in searchHistoryList) {
if (list.indexOf(searchHistoryList[i].key_word) === -1) {
......@@ -64,7 +65,6 @@ class searchHistoryService extends Service {
}
}
}
ctx.logger.info(list);
ret = {
results: list,
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