mirror of
https://github.com/mekael/WFClassic.git
synced 2025-12-30 18:19:33 -06:00
Respect buildLabel query parameter in worldState request
This commit is contained in:
@@ -9,5 +9,8 @@ namespace WFClassic.Web.Logic.Universe.GetState
|
||||
|
||||
[JsonPropertyName("nonce")]
|
||||
public long Nonce { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string buildLabel { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -66,7 +66,7 @@ namespace WFClassic.Web.Logic.Universe.GetState
|
||||
try
|
||||
{
|
||||
_logger.LogInformation("GetWorldStateHandler => accountId {AccountID} nonce {Nonce} => ", getWorldState.AccountId, getWorldState.Nonce);
|
||||
result.GetWorldStateResultJson = GetWorldStateMapper.Map(worldStateEventMessages, worldStateAlerts,operationConfigurations, _configuration.GetValue<string>("BuildLabel"));
|
||||
result.GetWorldStateResultJson = GetWorldStateMapper.Map(worldStateEventMessages, worldStateAlerts,operationConfigurations, getWorldState.buildLabel ?? _configuration.GetValue<string>("BuildLabel"));
|
||||
_logger.LogInformation("GetWorldStateHandler => accountId {AccountID} nonce {Nonce} => ", getWorldState.AccountId, getWorldState.Nonce);
|
||||
result.GetWorldStateResultStatus = GetWorldStateResultStatus.Success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user