mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 02:09:07 +03:00
feat: load contacts & roles on students
This commit is contained in:
parent
e3575caab3
commit
a4d8628c81
@ -83,7 +83,7 @@ export default class CourseRepository {
|
||||
.preload('color')
|
||||
.preload('category')
|
||||
.preload('lessons', q => q.preload('color').orderBy('display_order', 'asc').withCount('materials'))
|
||||
.preload('students')
|
||||
.preload('students', q => q.preload('roles').preload('contacts'))
|
||||
.where('id', id)
|
||||
.first();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user