Modifiche

This commit is contained in:
Lorenzo Sanesi
2026-04-01 23:49:19 +02:00
parent 8752acd2c4
commit e2fe8b264f
52 changed files with 1351 additions and 400 deletions
@@ -7,7 +7,7 @@ class GroupsController {
async getAllGroups(req, res, next) {
try {
const groups = await this.groupsService.getAllGroups();
const groups = await this.groupsService.getAllGroups(req.userId);
return ResponseHandler.success(res, groups, 'Groups retrieved successfully');
} catch (error) {
next(error);
@@ -52,10 +52,7 @@ class GroupsController {
async addMembers(req, res, next) {
try {
const group = await this.groupsService.addMembersToGroup(
req.params.id,
req.body.userIds
);
const group = await this.groupsService.addMembersToGroup(req.params.id, req.body.userIds);
return ResponseHandler.success(res, group, 'Members added successfully');
} catch (error) {
next(error);