Commit 9bc05010 authored by Hsinli's avatar Hsinli

addd

parent 674912ce
Pipeline #19682 passed with stage
in 58 seconds
......@@ -39,7 +39,7 @@ class PresellSearchHistoryService extends Service {
async getSearchHistory() {
const { ctx } = this;
let ret = {
results: [],
list: [],
count: 0
};
if (!ctx.appUserId || !ctx.userId) {
......@@ -60,7 +60,7 @@ class PresellSearchHistoryService extends Service {
}
let searchHistoryList = await ctx.realestateModel.CdPresellSearchHistory.findAll(filter);
let list = _.uniq(_.map(searchHistoryList, 'key_word'));
ret.results = list;
ret.list = list;
ret.count = list.length;
return ret;
}
......
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