Skip to content

Commit cf4175c

Browse files
committed
oki
1 parent ee51f45 commit cf4175c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/course.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async function checkActiveToLearn(req, res){
169169
],
170170
limit: 1
171171
});
172-
if(chapter){
172+
if(chapter.length > 0){
173173
const video = await db.VideoModel.findAll({
174174
where: {
175175
chapter_id: chapter[0].dataValues.id

0 commit comments

Comments
 (0)