Commit 383a909d authored by Hsinli's avatar Hsinli

fix

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