Commit 7e6bb087 authored by Hsinli's avatar Hsinli

addd

parent 4f637eba
Pipeline #8745 passed with stage
in 14 seconds
......@@ -51,15 +51,14 @@ class searchHistoryService extends Service {
user_id: ctx.userId,
created_at: { $gt: endDate }
},
group: 'key_word',
order: [['created_at', 'desc']],
distinct: true
}
if (type) {
filter.where.house_style = type;
}
let searchHistoryList = await ctx.realestateModel.SearchHistory.findAll(filter);
let list = searchHistoryList.map(v => { return v.key_word });
ctx.logger.info(list);
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