Function
NewLessonsService
(repo repository.Modules, contentRepo repository.LessonContent)
Source from the content-addressed store, hash-verified
| 16 | } |
| 17 | |
| 18 | func NewLessonsService(repo repository.Modules, contentRepo repository.LessonContent) *LessonsService { |
| 19 | return &LessonsService{repo: repo, contentRepo: contentRepo} |
| 20 | } |
| 21 | |
| 22 | func (s *LessonsService) Create(ctx context.Context, inp AddLessonInput) (primitive.ObjectID, error) { |
| 23 | schoolID, err := primitive.ObjectIDFromHex(inp.SchoolID) |
Tested by
no test coverage detected