Update app/services/grade_service.ts

This commit is contained in:
Nathan 2025-09-30 18:25:52 +02:00
parent bf8c8d2e8a
commit 11ffda9995

View file

@ -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
}