Rename deleteGlobalCape to deleteCape
Refactored the function and route handler from deleteGlobalCape to deleteCape for consistency and clarity in naming. Updated all references accordingly.
This commit is contained in:
@@ -13,7 +13,7 @@ router.post("/upload", adminService.hasPermission("UPLOAD_CAPE"), upload.single(
|
||||
})
|
||||
|
||||
router.delete("/:hash", adminService.hasPermission("DELETE_CAPES"), async (req, res) => {
|
||||
const result = await userService.deleteGlobalCape(req.params.hash)
|
||||
const result = await userService.deleteCape(req.params.hash)
|
||||
res.status(200).json(result)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user