diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-07-30 17:41:20 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-24 13:38:40 +0100 |
commit | 54a6e603ffc8b4913669cf0f189a966d25b620d8 (patch) | |
tree | 3b0f83d7e12a899113715cb018c4c2b9315141ed /src/server/game/Accounts/AccountMgr.h | |
parent | 1977d26050d1b0c6f2d21fe3316147ae0df9fc64 (diff) |
Core/Misc: Replace database query in WorldSession::HandleAddFriendOpcode with async version
(cherry picked from commit 2f0893d279ddab86ae7c3e4fd1d7a47b15e938f7)
Diffstat (limited to 'src/server/game/Accounts/AccountMgr.h')
-rw-r--r-- | src/server/game/Accounts/AccountMgr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Accounts/AccountMgr.h b/src/server/game/Accounts/AccountMgr.h index 45d8b8cf7ee..41a1948fdd4 100644 --- a/src/server/game/Accounts/AccountMgr.h +++ b/src/server/game/Accounts/AccountMgr.h @@ -68,8 +68,8 @@ class TC_GAME_API AccountMgr static bool CheckEmail(uint32 accountId, std::string newEmail); static uint32 GetId(std::string const& username); - static uint32 GetSecurity(uint32 accountId); static uint32 GetSecurity(uint32 accountId, int32 realmId); + [[nodiscard]] static QueryCallback GetSecurityAsync(uint32 accountId, int32 realmId, std::function<void(uint32)> callback); static bool GetName(uint32 accountId, std::string& name); static bool GetEmail(uint32 accountId, std::string& email); static uint32 GetCharactersCount(uint32 accountId); |