fix: correct role position calculation in resolvePosition method
This commit is contained in:
1 parent
dd22f0bb1f
commit
4a504639cd
1 file changed
+1
-1
@@ -43,7 +43,7 @@ export class DiscordRoleRepository implements RoleRepository {
|
||||
if (!this.anchorRoleId) return fallbackPosition;
|
||||
|
||||
const anchor = await this.fetchRole(this.anchorRoleId);
|
||||
return Math.max(anchor.position - 1, 1);
|
||||
return Math.max(anchor.position, 1);
|
||||
}
|
||||
|
||||
private async fetchRole(roleId: string): Promise<Role> {
|
||||
|
||||
Reference in new issue
Block a user