From 43e34cde3aa1441b4a6f2f3b7235a1b34e6019b3 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 30 Aug 2021 23:39:53 -0300 Subject: [PATCH] fix typo in sql statement --- 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 555ad77..90d67e7 100644 --- a/litecord/blueprints/checks.py +++ b/litecord/blueprints/checks.py @@ -120,7 +120,7 @@ async def _max_role_position(guild_id, member_id) -> Optional[int]: FROM member_roles JOIN roles ON roles.id = member_roles.role_id WHERE member_roles.guild_id = $1 AND - member_roles.member_id = $2 + member_roles.user_id = $2 """, guild_id, member_id,