style: remove -> del
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user