fix: mismatch groupId

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-16 02:48:53 +08:00
parent b5f23ad3b0
commit 612805acaf
+1 -1
View File
@@ -227,7 +227,7 @@ exports.register = async (req, res) => {
userEmail: email,
}))
.catch(err => console.error('[AUTH] Failed to emit user_registration notification:', err));
} else if (enrollGroup) {
} else if (enrollGroupId) {
AdminNotification.create(NOTIFICATION_REGISTRY.nogrp_user_registered.build({
userEmail: email,
regType: 'system',