mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 10:19:20 +03:00
refactor: comments in lesson repo
This commit is contained in:
parent
1ddcca2b6a
commit
453e394edd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user