diff --git a/app/services/grade_service.ts b/app/services/grade_service.ts index ddf8ffb..4751016 100644 --- a/app/services/grade_service.ts +++ b/app/services/grade_service.ts @@ -44,7 +44,7 @@ export class GradeService { .where('studentId', userId) .where('date', '>=', startDate.toJSDate()) .where('date', '<', endDate.toJSDate()) - .whereNotNull('garde') + .whereNotNull('grade') .preload('subject') .orderBy('date', 'asc') } @@ -54,7 +54,7 @@ export class GradeService { .where('studentId', userId) .where('subjectId', subjectId) .where('date', '<', beforeDate.toJSDate()) - .whereNotNull('garde') + .whereNotNull('grade') return colles.length ? this.calculateAverage(colles) : 0 }