From 453e394edda383d67115be397e271e440b092a9c Mon Sep 17 00:00:00 2001 From: Sergey Yarkov Date: Wed, 8 Dec 2021 18:08:13 +0300 Subject: [PATCH] refactor: comments in lesson repo --- app/Repositories/LessonRepository.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Repositories/LessonRepository.ts b/app/Repositories/LessonRepository.ts index 3beca2d..e93662b 100644 --- a/app/Repositories/LessonRepository.ts +++ b/app/Repositories/LessonRepository.ts @@ -91,10 +91,13 @@ export default class LessonRepository { await lesson.related('course').associate(course); /** - * Create content and materials fields in database + * Create content */ await lesson.related('content').create({ video_url: data.video_url }); + /** + * Create materials + */ if (data.materials) { /** * Move each file to disk