diff --git a/moderation/moderation.py b/moderation/moderation.py index a67a3eb..8364e17 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -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))