mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
fix(API): highest role position was incorrectly calculated starting from the highest instead of the lowest. fixes #97
This commit is contained in:
parent
5ef9046e0b
commit
1495500f2b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ export const getGuild = cacheLayer(
|
|||
}
|
||||
|
||||
return role.position;
|
||||
}, guildRaw.roles.length - 1);
|
||||
}, 0);
|
||||
|
||||
const roles = guildRaw.roles.map<Role>((role) => ({
|
||||
id: role.id,
|
||||
|
|
Loading…
Add table
Reference in a new issue