Removing any.

This commit is contained in:
mike12345567 2023-10-27 18:04:28 +01:00
parent d4929ea3b6
commit 330059991e
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ export async function getRole(
role = Object.assign(role, dbRole)
// finalise the ID
role._id = getExternalRoleID(role._id, role.version)
} catch (err: any) {
} catch (err) {
if (!isBuiltin(roleId) && opts?.defaultPublic) {
return cloneDeep(BUILTIN_ROLES.PUBLIC)
}