Skip to content

Commit 57db62c

Browse files
committed
Update AssignLCGV2.cs
1 parent ac1eec4 commit 57db62c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

API/Controller/Device/AssignLCGV2.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public sealed partial class DeviceController
2222
[ProducesResponseType<LcgNodeResponseV2>(StatusCodes.Status200OK, MediaTypeNames.Application.Json)]
2323
[ProducesResponseType<OpenShockProblem>(StatusCodes.Status400BadRequest, MediaTypeNames.Application.ProblemJson)] // BadSchemaVersion
2424
[ProducesResponseType<OpenShockProblem>(StatusCodes.Status503ServiceUnavailable, MediaTypeNames.Application.ProblemJson)] // NoLcgNodesAvailable
25-
public async Task<IActionResult> GetLiveControlGatewayV2([FromQuery] uint SchemaVersion, [FromServices] ILCGNodeProvisioner geoLocation, [FromServices] IWebHostEnvironment env)
25+
public async Task<IActionResult> GetLiveControlGatewayV2([FromQuery(Name = "version")] uint version, [FromServices] ILCGNodeProvisioner geoLocation, [FromServices] IWebHostEnvironment env)
2626
{
2727
string path;
28-
switch (SchemaVersion)
28+
switch (version)
2929
{
3030
case 1:
3131
path = "/1/ws/hub";

0 commit comments

Comments
 (0)