Skip to content

Commit

Permalink
fix: Fix wrong column name
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jan 15, 2025
1 parent 8a6271a commit 4c640e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoyo_buddy/bot/command_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def interaction_check(self, i: Interaction) -> Literal[True]:
# Set user's language if not set
async with i.client.pool.acquire() as conn:
await conn.execute(
'UPDATE "settings" SET lang = $2 WHERE id = $1 AND lang IS NULL;',
'UPDATE "settings" SET lang = $2 WHERE user_id = $1 AND lang IS NULL;',
i.user.id,
i.locale.value,
)
Expand Down

0 comments on commit 4c640e8

Please sign in to comment.