Practice battles work
This commit is contained in:
@@ -256,13 +256,6 @@ public class DeckController : SVSimController
|
||||
return Task.FromResult<ActionResult<EmptyResponse>>(new EmptyResponse());
|
||||
}
|
||||
|
||||
private bool TryGetViewerId(out long viewerId)
|
||||
{
|
||||
viewerId = 0;
|
||||
var claim = User.Claims.FirstOrDefault(c => c.Type == ShadowverseClaimTypes.ViewerIdClaim)?.Value;
|
||||
return claim is not null && long.TryParse(claim, out viewerId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert a flat `card_id_array` (cards repeated for count) into a grouped DeckCard list.
|
||||
/// Cards not in the DB are silently dropped — until CardImport lands the result is always
|
||||
|
||||
Reference in New Issue
Block a user