Update backend/src/services/teachers.ts
Co-authored-by: Tibo De Peuter <tibo.depeuter@ugent.be>
This commit is contained in:
parent
064810b4b8
commit
757d51a083
1 changed files with 0 additions and 3 deletions
|
@ -106,9 +106,6 @@ export async function getTeacherQuestions(username: string, full: boolean): Prom
|
||||||
const learningObjectRepository: LearningObjectRepository = getLearningObjectRepository();
|
const learningObjectRepository: LearningObjectRepository = getLearningObjectRepository();
|
||||||
const learningObjects: LearningObject[] = await learningObjectRepository.findAllByTeacher(teacher);
|
const learningObjects: LearningObject[] = await learningObjectRepository.findAllByTeacher(teacher);
|
||||||
|
|
||||||
// Console.log(learningObjects)
|
|
||||||
// TODO returns empty
|
|
||||||
|
|
||||||
if (!learningObjects || learningObjects.length === 0) {
|
if (!learningObjects || learningObjects.length === 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue