(ctx context.Context, lessonID primitive.ObjectID)
| 105 | } |
| 106 | |
| 107 | func (s *ModulesService) GetByLesson(ctx context.Context, lessonID primitive.ObjectID) (domain.Module, error) { |
| 108 | return s.repo.GetByLesson(ctx, lessonID) |
| 109 | } |
| 110 | |
| 111 | func (s *ModulesService) Create(ctx context.Context, inp CreateModuleInput) (primitive.ObjectID, error) { |
| 112 | id, err := primitive.ObjectIDFromHex(inp.CourseID) |
nothing calls this directly
no test coverage detected