remove error response from GetLoggedUsersCharacters
This commit is contained in:
parent
bf5604871d
commit
2c302d7f09
@ -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"
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user