feat(DB/Account): Delete account_muted when deleting an account

* When you delete an account with .acc delete it will also delete the account_muted history for the account
This commit is contained in:
VhiperDEV
2020-05-15 22:57:56 -03:00
committed by GitHub
parent f0cb997466
commit d3d9ad716e
3 changed files with 6 additions and 0 deletions

View File

@@ -112,6 +112,10 @@ namespace AccountMgr
stmt->setUInt32(0, accountId);
trans->Append(stmt);
stmt = LoginDatabase.GetPreparedStatement(LOGIN_DEL_ACCOUNT_MUTEDEL);
stmt->setUInt32(0, accountId);
trans->Append(stmt);
LoginDatabase.CommitTransaction(trans);
return AOR_OK;