Add class numberOfSessions and fix attendance completion detection.

Sessions with full student attendance are now excluded from the pending list reliably by loading class rosters from the database.
This commit is contained in:
2026-08-16 08:55:03 +03:30
parent cd98adff84
commit 0d57854dc3
3 changed files with 67 additions and 17 deletions
+5
View File
@@ -73,6 +73,11 @@ const classSchema = new mongoose.Schema({
trim: true,
default: ''
},
numberOfSessions: {
type: Number,
min: 1,
default: null
},
isActive: {
type: Boolean,
default: true