SES-116 backend fix

This commit is contained in:
Łukasz Góreczny 2020-12-30 11:43:57 +01:00
parent a7aaacb2e5
commit 329ac81ed2

View File

@ -72,12 +72,6 @@ namespace SessionCompanion.Controllers
public async Task<Either<List<CharacterBasicStatsViewModel>, ErrorResponse>> GetLoggedUsersCharacters() public async Task<Either<List<CharacterBasicStatsViewModel>, ErrorResponse>> GetLoggedUsersCharacters()
{ {
var connectedCharacters = _sessionHubData.ConnectedCharacters_Prop; var connectedCharacters = _sessionHubData.ConnectedCharacters_Prop;
if (_sessionHubData.ConnectedCharacters_Prop.Count() == 0)
{
connectedCharacters.Add("a", 1);
connectedCharacters.Add("s", 2);
connectedCharacters.Add("d", 3);
}
var characters = await _service.GetBasicCharactersData(connectedCharacters.Values.ToList()); var characters = await _service.GetBasicCharactersData(connectedCharacters.Values.ToList());
return characters.ToList(); return characters.ToList();