style: remove -> del

This commit is contained in:
Girish Ramakrishnan
2024-12-03 17:02:40 +01:00
parent 423dfb6ace
commit fdf8025a02
8 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -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));