Skip to content

Commit

Permalink
fix(mod-commands): fix original message id not being found when editi…
Browse files Browse the repository at this point in the history
…ng medals
  • Loading branch information
tylovejoy committed Apr 14, 2024
1 parent 1c388e3 commit 68ee484
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cogs/mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ async def edit_medals(
await itx.client.database.set(query, *args)
await itx.edit_original_response(content=content)
if playtest := await itx.client.database.get_row(
"SELECT thread_id, original_msg FROM playtest WHERE map_code=$1", map_code
"SELECT thread_id, original_msg FROM playtest WHERE map_code=$1 AND original_msg IS NOT NULL",
map_code,
):
await self._newsfeed_medals(
itx,
Expand Down

0 comments on commit 68ee484

Please sign in to comment.