mirror of https://gitlab.com/litecord/litecord.git
fix typo on sql query
This commit is contained in:
parent
36a69ad8cb
commit
70cd40966d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue