Commit 383a909d authored by Hsinli's avatar Hsinli

fix

parent c36d0ad4
......@@ -53,9 +53,10 @@ class RentalHouseService extends Service {
const rental_houses_ids = R.pluck('rental_house_id', house_types);
let match_ids = new Set(rental_houses_ids);
match_ids = [...match_ids];
if (Array.isArray(match_ids) && match_ids.length !== 0) {
where.id = { $in: match_ids };
}
// if (Array.isArray(match_ids) && match_ids.length !== 0) {
// where.id = { $in: match_ids };
// }
where.id = { $in: match_ids };
}
const rental_houses_results = await ctx.realestateModel.RentalHouse.list({ page: page, limit: Number(limit), where: where, order: [['order_id', 'asc']] });
......
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