Skip to content

Commit 90bb4ee

Browse files
committed
oki
1 parent 706c06a commit 90bb4ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/controller/course.controller.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,15 @@ async function checkActiveToLearn(req, res){
145145
user_id: req.tokenData.id
146146
}
147147
});
148-
console.log("team:", team);
149148
let course;
150149
if(team){
151150
course = await db.TeamCourseModel.findOne({
152151
where: {
153-
team_id: team.dataValues.id,
152+
team_id: team.dataValues.team_id,
154153
course_id: course_id
155154
}
156155
});
157156
}
158-
console.log("course: ", course);
159157
if(!course){
160158
throw new Error("Bạn không thể tham gia khóa học này.");
161159
}

0 commit comments

Comments
 (0)