diff --git a/controllers/auth.controller.js b/controllers/auth.controller.js index 7c1a9b3..71775f6 100644 --- a/controllers/auth.controller.js +++ b/controllers/auth.controller.js @@ -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',