Browse Source

修改查询

zs 11 tháng trước cách đây
mục cha
commit
52d5906032
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/service/core/record.service.ts

+ 1 - 1
src/service/core/record.service.ts

@@ -30,7 +30,7 @@ export class RecordService extends BaseService<modelType> {
       const videoData = await this.vModel.findOne({ title: { $regex: video_name } }).lean();
       if (videoData) info.video_id = get(videoData, '_id');
     }
-    if (video_name) {
+    if (course_name) {
       const courseData = await this.cModel.findOne({ title: { $regex: course_name } }).lean();
       if (courseData) info.course_id = get(courseData, '_id');
     }