style: remove -> del
This commit is contained in:
@@ -7,7 +7,7 @@ exports = module.exports = {
|
||||
list,
|
||||
add,
|
||||
setName,
|
||||
remove,
|
||||
del,
|
||||
setMembers
|
||||
};
|
||||
|
||||
@@ -78,10 +78,10 @@ async function list(req, res, next) {
|
||||
next(new HttpSuccess(200, { groups: result }));
|
||||
}
|
||||
|
||||
async function remove(req, res, next) {
|
||||
async function del(req, res, next) {
|
||||
assert.strictEqual(typeof req.params.groupId, 'string');
|
||||
|
||||
const [error] = await safe(groups.remove(req.params.groupId));
|
||||
const [error] = await safe(groups.del(req.params.groupId));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(204));
|
||||
|
||||
Reference in New Issue
Block a user