From 54a6e603ffc8b4913669cf0f189a966d25b620d8 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 30 Jul 2020 17:41:20 +0200 Subject: Core/Misc: Replace database query in WorldSession::HandleAddFriendOpcode with async version (cherry picked from commit 2f0893d279ddab86ae7c3e4fd1d7a47b15e938f7) --- src/server/game/Accounts/AccountMgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/Accounts/AccountMgr.h') 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 callback); static bool GetName(uint32 accountId, std::string& name); static bool GetEmail(uint32 accountId, std::string& email); static uint32 GetCharactersCount(uint32 accountId); -- cgit v1.2.3