Skip to content

Commit a306be9

Browse files
#80 - remove obsolete code
1 parent e02f7af commit a306be9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/controllers/GroupController.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ async function getGroupByOldId (req, res) {
7676
const result = await service.getGroup(
7777
req.authUser.isMachine ? 'M2M' : req.authUser,
7878
req.params.oldId,
79-
req.query,
80-
true
79+
req.query
8180
)
8281
res.send(result)
8382
}

src/services/GroupService.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ updateGroup.schema = {
297297
* @param {Object} criteria the query criteria
298298
* @returns {Object} the group
299299
*/
300-
async function getGroup (currentUser, groupId, criteria, isOldId) {
300+
async function getGroup (currentUser, groupId, criteria) {
301301
const isAdmin = currentUser === 'M2M' || helper.hasAdminRole(currentUser)
302302
logger.debug(
303303
`Get Group - admin - ${isAdmin} - user - ${currentUser} , groupId - ${groupId} , criteria - ${JSON.stringify(
@@ -427,8 +427,7 @@ getGroup.schema = {
427427
includeParentGroup: Joi.boolean().default(false),
428428
oneLevel: Joi.boolean(),
429429
fields: Joi.string()
430-
}),
431-
isOldId: Joi.boolean()
430+
})
432431
}
433432

434433
/**

0 commit comments

Comments
 (0)