Commit 0dbab1e8 authored by 任国军's avatar 任国军

fix bug

parent 84e65d9f
Pipeline #21842 passed with stage
in 12 seconds
......@@ -17,7 +17,7 @@ class ReportService extends Service {
ctx.failed('请先选择您的宝宝年龄');
}
const questionList = await ctx.classModel.V5.CourseV5Question.findAll({ where: { cat_id: catId, age_id: userBabyInfo.age, status: 1, is_deleted: 0 }, order: [[ 'sort', 'asc' ]] });
const questionList = await ctx.classModel.V5.CourseV5Question.findAll({ where: { cat_id: catId, age_id: userBabyInfo.baby_age, status: 1, is_deleted: 0 }, order: [[ 'sort', 'asc' ]] });
if (ctx.isEmpty(questionList)) {
return { list: [] };
}
......
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