forked from cswimr/SeaCogs
fix(moderation): fixed classmethod being in a sql query
This commit is contained in:
parent
6dae7f9442
commit
0905430ad5
1 changed files with 1 additions and 1 deletions
|
@ -1125,7 +1125,7 @@ class Moderation(commands.Cog):
|
|||
else:
|
||||
resolve_query = f"UPDATE `{db}`.`moderation_{interaction.guild.id}` SET resolved = 1, changes = %s, resolved_by = %s, resolve_reason = %s WHERE moderation_id = %s"
|
||||
|
||||
cursor.execute(resolve_query, (json.dumps(changes), interaction.user.id, reason, classmethod))
|
||||
cursor.execute(resolve_query, (json.dumps(changes), interaction.user.id, reason, case_dict['moderation_id']))
|
||||
database.commit()
|
||||
|
||||
embed = await self.embed_factory('case', interaction=interaction, case_dict=await self.fetch_case(case, interaction.guild.id))
|
||||
|
|
Loading…
Reference in a new issue