fix(aurora): why was I CLOSING THE CONNECTION THERE 😭
This commit is contained in:
parent
3247e6fb82
commit
ca4510d3a5
1 changed files with 0 additions and 1 deletions
|
@ -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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
|
||||
await database.execute(sql, tuple(case.values()))
|
||||
|
||||
await database.close()
|
||||
await database.commit()
|
||||
if close_db:
|
||||
await database.close()
|
||||
|
|
Loading…
Reference in a new issue