Commit e71db4a3 authored by 李尚科's avatar 李尚科

fix

parent e7253cac
Pipeline #14362 passed with stage
in 5 seconds
...@@ -35,11 +35,11 @@ class InstitutionService extends Service { ...@@ -35,11 +35,11 @@ class InstitutionService extends Service {
const institutions = await ctx.classModel.CourseInstitutionToCat.all({ where: { cat_id: { $in: cat_ids } } }); const institutions = await ctx.classModel.CourseInstitutionToCat.all({ where: { cat_id: { $in: cat_ids } } });
where.id = { $in: R.pluck('institution_id', institutions) }; where.id = { $in: R.pluck('institution_id', institutions) };
} }
if (age) { if (ages) {
where.max_age = { $gte: age }; where.max_age = { $gte: age };
where.min_age = { $lte: age }; where.min_age = { $lte: age };
} }
if (institution) { if (institutions) {
where.corner = { $ne: '' }; where.corner = { $ne: '' };
} }
......
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