Skip to content

Commit

Permalink
grab the correct track
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Jul 1, 2024
1 parent a0595b5 commit 57f412a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion XLWebServices/Controllers/Dalamud/ReleaseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public IActionResult VersionInfo([FromQuery] string? track = "", [FromQuery] str
string? keyOverride = null;
if (releases.DeclarativeAliases.TryGetValue(track, out var aliasTrack))
{
keyOverride = releases.DalamudVersions[track].Key;
track = aliasTrack;
keyOverride = releases.DalamudVersions[aliasTrack].Key;
}

DalamudReleaseDataService.DalamudVersion? resultVersion = null;
Expand Down
2 changes: 1 addition & 1 deletion XLWebServices/Services/DalamudReleaseDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public async Task ClearCache()
var declarative = await GetDeclarative(shaDeclarative);
if (declarative == null)
throw new Exception("Declarative was null");

// Go through declaratives and map aliases
this.DeclarativeAliases = declarative.Tracks
.Where(track => !string.IsNullOrEmpty(track.Value.Alias))
Expand Down

0 comments on commit 57f412a

Please sign in to comment.