diff --git a/src/controllers/GroupsController.ts b/src/controllers/GroupsController.ts index 0d4704d..ad8e0a4 100644 --- a/src/controllers/GroupsController.ts +++ b/src/controllers/GroupsController.ts @@ -369,9 +369,11 @@ export class GroupsController { await GroupsHelper.InsertMember(member); - if(group.registrationLevel == GroupRegistrationLevel.MODERATED_REGISTRATION) { - //TODO : Send a notification - } + if(group.registrationLevel == GroupRegistrationLevel.MODERATED_REGISTRATION) + // Send a notification + await NotificationsHelper.CreateGroupMembershipNotification( + h.getUserId(), 0, groupID, NotifEventType.SENT_GROUP_MEMBERSHIP_REQUEST) + h.success("The membership has been successfully saved!"); }