feat: complete remaining PRD tasks — RBAC nodes and staff split, schedule month view, auto-generate attendance from schedules, plus fix TypeORM name

This commit is contained in:
2026-07-06 18:10:14 +08:00
parent 67952af52e
commit 693ba5d3b8
12 changed files with 447 additions and 48 deletions

View File

@@ -177,9 +177,9 @@ export class StudentsService {
// Group attendance by class
const attendanceByClass = new Map<number, AttendanceRecord[]>();
for (const r of attendanceRecords) {
const list = attendanceByClass.get(r.classId!) || [];
const list = attendanceByClass.get(r.classId) || [];
list.push(r);
attendanceByClass.set(r.classId!, list);
attendanceByClass.set(r.classId, list);
}
const comparison = enrollments.map((e) => {