remove error response from GetLoggedUsersCharacters

This commit is contained in:
Karol Górzyński 2020-12-20 16:30:15 +01:00
parent bf5604871d
commit 2c302d7f09

View File

@ -77,14 +77,7 @@ namespace SessionCompanion.Controllers
foreach (var characterId in connectedCharacters.Values) foreach (var characterId in connectedCharacters.Values)
characters.Add(await _service.GetBasicCharacterData(characterId)); characters.Add(await _service.GetBasicCharacterData(characterId));
if (characters.Any())
return characters; return characters;
return new ErrorResponse()
{
StatusCode = 204,
Message = "No logged characters"
};
} }
} }
} }