diff --git a/app/Repositories/LessonRepository.ts b/app/Repositories/LessonRepository.ts index 437144e..abd7ab5 100644 --- a/app/Repositories/LessonRepository.ts +++ b/app/Repositories/LessonRepository.ts @@ -149,7 +149,7 @@ export default class LessonRepository { * @returns Deleted lesson or null */ public async delete(id: string | number): Promise { - const lesson = await this.Lesson.query().where('id', id).first(); + const lesson = await this.Lesson.query().where('id', id).preload('color').first(); if (lesson) { await lesson.delete();