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

fix videoList

parent 4d3c8226
Pipeline #24781 passed with stage
in 5 seconds
......@@ -406,7 +406,7 @@ class InstitutionSubService extends Service {
const classId = input.class_id || 0;
const userUuid = ctx.userUuid;
const videoList = await ctx.classModel.V5.CourseV5Video.findAll({ where: { class_id: classId, status: 1, is_deleted: 0 }, attributes: [ 'id', 'class_id', 'title', 'time', 'cover_image', 'is_free' ], order: [[ 'sort', 'asc' ]] });
const videoList = await ctx.classModel.V5.CourseV5Video.findAll({ where: { class_id: classId, status: 1, is_deleted: 0 }, attributes: [ 'id', 'class_id', 'title', 'time', 'cover_image', 'is_free' ], order: [[ 'sort', 'asc' ]], raw: true });
let latestVideoId = 0;
let valid = 0;
......
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