fix(aurora): why was I CLOSING THE CONNECTION THERE 😭

This commit is contained in:
Seaswimmer 2024-06-05 01:01:17 -04:00
parent 3247e6fb82
commit ca4510d3a5
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -366,7 +366,6 @@ class Moderation(AuroraGuildModel):
sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
await database.execute(sql, tuple(case.values())) await database.execute(sql, tuple(case.values()))
await database.close()
await database.commit() await database.commit()
if close_db: if close_db:
await database.close() await database.close()