From d02fedcfdd2061dfb36221b16dfef8f6aa0b2c65 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Thu, 9 Jan 2025 21:45:47 +0100 Subject: [PATCH] Fix build errors --- Fuyu.Backend.Core/Controllers/AccountGamesController.cs | 2 +- Fuyu.Backend.Core/Controllers/AccountLogoutController.cs | 2 +- Fuyu.Backend.Core/Controllers/AccountRegisterGameController.cs | 2 +- .../Controllers/Http/GameProfileVoiceChangeController.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Fuyu.Backend.Core/Controllers/AccountGamesController.cs b/Fuyu.Backend.Core/Controllers/AccountGamesController.cs index 2c834407..4ec4164a 100644 --- a/Fuyu.Backend.Core/Controllers/AccountGamesController.cs +++ b/Fuyu.Backend.Core/Controllers/AccountGamesController.cs @@ -17,7 +17,7 @@ public AccountGamesController() : base("/account/games") public override Task RunAsync(CoreHttpContext context) { - var sessionId = context.GetSessionId(); + var sessionId = context.SessionId; var result = _accountService.GetGames(sessionId); var response = new AccountGamesResponse() { diff --git a/Fuyu.Backend.Core/Controllers/AccountLogoutController.cs b/Fuyu.Backend.Core/Controllers/AccountLogoutController.cs index 2618aeaf..867134ce 100644 --- a/Fuyu.Backend.Core/Controllers/AccountLogoutController.cs +++ b/Fuyu.Backend.Core/Controllers/AccountLogoutController.cs @@ -11,7 +11,7 @@ public AccountLogoutController() : base("/account/logout") public override Task RunAsync(CoreHttpContext context) { - var sessionId = context.GetSessionId(); + var sessionId = context.SessionId; CoreOrm.Instance.RemoveSession(sessionId); return context.SendJsonAsync("{}"); diff --git a/Fuyu.Backend.Core/Controllers/AccountRegisterGameController.cs b/Fuyu.Backend.Core/Controllers/AccountRegisterGameController.cs index 9a4b080e..26c5e8ea 100644 --- a/Fuyu.Backend.Core/Controllers/AccountRegisterGameController.cs +++ b/Fuyu.Backend.Core/Controllers/AccountRegisterGameController.cs @@ -17,7 +17,7 @@ public AccountRegisterGameController() : base("/account/register/game") public override Task RunAsync(CoreHttpContext context, AccountRegisterGameRequest request) { - var sessionId = context.GetSessionId(); + var sessionId = context.SessionId; var result = _accountService.RegisterGame(sessionId, request.Game, request.Edition); return context.SendJsonAsync(Json.Stringify(result)); diff --git a/Fuyu.Backend.EFT/Controllers/Http/GameProfileVoiceChangeController.cs b/Fuyu.Backend.EFT/Controllers/Http/GameProfileVoiceChangeController.cs index 696e3b33..fa80c52b 100644 --- a/Fuyu.Backend.EFT/Controllers/Http/GameProfileVoiceChangeController.cs +++ b/Fuyu.Backend.EFT/Controllers/Http/GameProfileVoiceChangeController.cs @@ -17,7 +17,7 @@ public GameProfileVoiceChangeController() : base("/client/game/profile/voice/cha public override Task RunAsync(EftHttpContext context, GameProfileVoiceChangeRequest body) { - var profile = _eftOrm.GetActiveProfile(context.GetSessionId()); + var profile = _eftOrm.GetActiveProfile(context.SessionId); profile.Pmc.Info.Voice = body.Voice;