Skip to content

Commit

Permalink
Update courses.go
Browse files Browse the repository at this point in the history
  • Loading branch information
KemalKrKX authored Dec 6, 2024
1 parent 750d8e4 commit d7482d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dao/courses.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ func (d coursesDao) DeleteCourse(course model.Course) {

func (d coursesDao) IsUserEnrolledInCourse(user uint, course uint) (bool, error) {
var nRows int64
var err error
err := DB.Table("course_users").Where("user_id = ? AND course_id = ?", user, course).Count(&nRows).Error
if err != nil {
return false, err
Expand Down

0 comments on commit d7482d9

Please sign in to comment.