feat: add return of table state
This commit is contained in:
@@ -58,6 +58,8 @@ public class RCard {
|
||||
|
||||
@WSReceiver(code = "getCardForMatch", permission = PermLevel.VIEW)
|
||||
public Uni<List<CardModel>> getCardForMatch(WebSocketConnection connection, Long matchId) {
|
||||
if (matchId == null)
|
||||
return Uni.createFrom().nullItem();
|
||||
return getById(matchId, connection).chain(matchModel -> cardService.getForMatch(matchModel));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user