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
@@ -5,7 +5,7 @@ exports = module.exports = {
add,
get,
update,
remove,
del,
getIcon
};
@@ -71,10 +71,10 @@ async function update(req, res, next) {
next(new HttpSuccess(202, {}));
}
async function remove(req, res, next) {
async function del(req, res, next) {
assert.strictEqual(typeof req.params.id, 'string');
const [error] = await safe(applinks.remove(req.params.id));
const [error] = await safe(applinks.del(req.params.id));
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(204));