From 07ffeb8de4007e1cefdb6923e501a43049988ef1 Mon Sep 17 00:00:00 2001 From: leca Date: Sat, 2 Nov 2024 12:49:52 +0300 Subject: [PATCH] fixed wrong variable name --- src/controllers/group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/group.js b/src/controllers/group.js index b5a0e17..2d6593a 100644 --- a/src/controllers/group.js +++ b/src/controllers/group.js @@ -17,7 +17,7 @@ class GroupController { log.info(`New group with name ${groupName} was just created by user ${user.login.username}`); - await UserService.joinGroup(user.login.id, status.id); + await UserService.joinGroup(user.login.id, group.id); // return res.status(200).send(translate(req.headers["accept-language"], responseCodes.responses.general.ok)); return res.status(200).send(group.id.toString()) }