Skip to content

Commit

Permalink
finally fixes chat config mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Updyke committed Oct 10, 2024
1 parent 7fde8c7 commit 06960fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ChatClient
private static readonly Logger _log = LogManager.GetCurrentClassLogger();
private readonly ChatJobConfiguration _configuration;
private readonly ApplicationSettings.AnimatorSettingsDetail.AnimationsSettings.ChatSettings _chatSettings;
private readonly string _baseUrl;
private string _baseUrl;
private readonly HttpClient _client;
private string _token;
private string UserId { get; set; }
Expand All @@ -45,7 +45,7 @@ public ChatClient(ApplicationSettings.AnimatorSettingsDetail.AnimationsSettings.
{
_configuration = config;
_chatSettings = chatSettings;
this._baseUrl = _configuration.Chat.BaseUrl;
this._baseUrl = _chatSettings.PostUrl;
this._client = new HttpClient();
this._formatterService = formatterService;
this._activityHubContext = activityHubContext;
Expand All @@ -68,7 +68,8 @@ private async Task<User> AdminLogin()

private async Task<User> Login(string username, string password)
{
var url = $"{_baseUrl}api/v4/users/login";
_baseUrl = _baseUrl.TrimEnd('/');
var url = $"{_baseUrl}/api/v4/users/login";
_log.Trace($"Using login url: {url}");

try
Expand Down
2 changes: 1 addition & 1 deletion src/Ghosts.Api/ghosts.api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<AssemblyName>ghosts.api</AssemblyName>

<AssemblyVersion>8.0.0.0</AssemblyVersion>
<FileVersion>8.2.499.0</FileVersion>
<FileVersion>8.2.5.1</FileVersion>

<Authors>GHOSTS Development Team for CERT > Software Engineering Institute > Carnegie Mellon University</Authors>
<Company>Carnegie Mellon University</Company>
Expand Down

0 comments on commit 06960fa

Please sign in to comment.