Commit a240560a authored by Hsinli's avatar Hsinli

addd

parent 9bc05010
Pipeline #19684 passed with stage
in 58 seconds
......@@ -76,22 +76,11 @@ class PresellSearchHistoryService extends Service {
//如果没有登录就不做处理
return ret;
}
let filter = {
attributes: ['id'],
where: {
state: 1,
user_id: ctx.userId,
}
}
let searchHistoryList = await ctx.realestateModel.CdPresellSearchHistory.findAll(filter);
if (searchHistoryList.length > 0) {
let params = { state: 0 };
let where = {
user_id: ctx.userId
}
await ctx.realestateModel.CdPresellSearchHistory.update(params, { where: where });
let params = { state: 0 };
let where = {
user_id: ctx.userId
}
await ctx.realestateModel.CdPresellSearchHistory.update(params, { where: where });
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