Missed comment.
This commit is contained in:
parent
2ae1836b9a
commit
bd10a3d831
|
@ -273,12 +273,7 @@ export async function roleToNumber(id: string) {
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
let highest = 0
|
return Math.max(...hierarchy.map(findNumber))
|
||||||
for (let role of hierarchy) {
|
|
||||||
const roleNumber = findNumber(role)
|
|
||||||
highest = Math.max(roleNumber, highest)
|
|
||||||
}
|
|
||||||
return highest
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue