MCPcopy Create free account
hub / github.com/Creatly/creatly-backend / GetByLesson

Method GetByLesson

internal/service/modules.go:107–109  ·  view source on GitHub ↗
(ctx context.Context, lessonID primitive.ObjectID)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

GetByLessonMethod · 0.65

Tested by

no test coverage detected