From f6e25d606a2fa2bc310f1cabc5cda396da134411 Mon Sep 17 00:00:00 2001 From: leca Date: Thu, 31 Oct 2024 10:10:27 +0300 Subject: [PATCH] fix property access --- src/controllers/group.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/group.js b/src/controllers/group.js index c939e02..25b5fee 100644 --- a/src/controllers/group.js +++ b/src/controllers/group.js @@ -43,9 +43,9 @@ class GroupController { async getByName(req, res) { let groupName = req.params.groupName || req.body.groupName; - let id = await GroupService.getByName(groupName); + let group = await GroupService.getByName(groupName); - return res.status(200).send(id); + return res.status(200).send(group.id); } }