mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 10:19:20 +03:00
fix: lesson deleting
This commit is contained in:
parent
4aed828c4e
commit
06e8acd0b2
@ -202,7 +202,10 @@ export default class LessonRepository {
|
|||||||
/**
|
/**
|
||||||
* Delete files from disk
|
* Delete files from disk
|
||||||
*/
|
*/
|
||||||
await this.Drive.delete(`videos/${lesson.video.name}`);
|
if (lesson.video) {
|
||||||
|
await this.Drive.delete(`videos/${lesson.video.name}`);
|
||||||
|
}
|
||||||
|
|
||||||
await this.deleteMaterials(lesson);
|
await this.deleteMaterials(lesson);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user