fix(syntax): add missing closing brace in updateStudent

This commit is contained in:
ssbg04 committed 2026-08-18 19:49:47 +08:00
1 parent e707842a5f
commit 7084d5ab65
1 file changed
+1
@@ -555,6 +555,7 @@ exports.updateStudent = (req, res) => {
const dob = new Date(birthDate);
if (isNaN(dob.getTime())) errors.push('Invalid date of birth format.');
else if (dob > new Date()) errors.push('Date of birth cannot be in the future.');
}
if (status && !['Enrolled', 'Graduated', 'Transferred', 'Dropped', 'Inactive'].includes(status)) {
errors.push('Invalid status value.');
}