Commit cb4815b8 authored by 任国军's avatar 任国军

fix generateReport bug

parent cd8d39bf
Pipeline #22330 passed with stage
in 3 seconds
......@@ -86,7 +86,7 @@ class ReportService extends Service {
async getReportByCategory(catId) {
const { ctx } = this;
const userReportInfo = await ctx.classModel.V5.CourseUserReport.findOne({ user_uuid: ctx.userUuid, cat_id: catId, status: 1, is_deleted: 0 });
const userReportInfo = await ctx.classModel.V5.CourseUserReport.findOne({ where: { user_uuid: ctx.userUuid, cat_id: catId, status: 1, is_deleted: 0 } });
if (ctx.isEmpty(userReportInfo)) {
ctx.failed('尚未生成报告');
}
......
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