From 70cd40966d9526c3db2872f559b4550790a8320e Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 30 Aug 2021 23:37:02 -0300 Subject: [PATCH] fix typo on sql query --- litecord/blueprints/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/checks.py b/litecord/blueprints/checks.py index 3571a0e..555ad77 100644 --- a/litecord/blueprints/checks.py +++ b/litecord/blueprints/checks.py @@ -116,7 +116,7 @@ async def channel_check( async def _max_role_position(guild_id, member_id) -> Optional[int]: return await app.db.fetchval( """ - SELECT MAX(role.position) + SELECT MAX(roles.position) FROM member_roles JOIN roles ON roles.id = member_roles.role_id WHERE member_roles.guild_id = $1 AND