Fix role icons not deleting?

This commit is contained in:
Madeline committed 2022-07-07 16:32:55 +10:00
1 parent 210ab0da72
commit 980df82f87
1 file changed
+1
@@ -42,6 +42,7 @@ router.patch("/", route({ body: "RoleModifySchema", permission: "MANAGE_ROLES" }
const body = req.body as RoleModifySchema;
if (body.icon) body.icon = await handleFile(`/role-icons/${role_id}`, body.icon as string);
else body.icon = undefined;
const role = new Role({
...body,