fix: wrong start date

This commit is contained in:
Nathan Lamy 2026-02-24 23:06:49 +01:00
parent 71d0a35478
commit b57d12a400

View file

@ -112,7 +112,7 @@ export class GradeService {
while (periodStartDate < startDate.plus({ months })) { while (periodStartDate < startDate.plus({ months })) {
const periodEndDate = periodStartDate.endOf('month') const periodEndDate = periodStartDate.endOf('month')
const periodColles = this.getPeriodColles(colles, startDate, periodEndDate) const periodColles = this.getPeriodColles(colles, periodStartDate, periodEndDate)
const periodAverage = this.calculateAverage(periodColles) const periodAverage = this.calculateAverage(periodColles)
const subjectAverages = await this.getSubjectAverages( const subjectAverages = await this.getSubjectAverages(