|
@@ -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');
|
|
|
}
|