rename function to setMembers
This commit is contained in:
@@ -6,7 +6,7 @@ exports = module.exports = {
|
||||
add,
|
||||
update,
|
||||
remove,
|
||||
updateMembers
|
||||
setMembers
|
||||
};
|
||||
|
||||
const assert = require('assert'),
|
||||
@@ -49,7 +49,7 @@ async function update(req, res, next) {
|
||||
next(new HttpSuccess(200, { }));
|
||||
}
|
||||
|
||||
async function updateMembers(req, res, next) {
|
||||
async function setMembers(req, res, next) {
|
||||
assert.strictEqual(typeof req.params.groupId, 'string');
|
||||
|
||||
if (!req.body.userIds) return next(new HttpError(404, 'missing or invalid userIds fields'));
|
||||
|
||||
Reference in New Issue
Block a user