From 612805acafdc72c5935540f1fb810e4cea3a94b2 Mon Sep 17 00:00:00 2001 From: Kenneth Obsequio Date: Thu, 16 Jul 2026 02:48:53 +0800 Subject: [PATCH] fix: mismatch groupId Signed-off-by: Kenneth Obsequio --- controllers/auth.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',