feat: cm admin comb selector

This commit is contained in:
2025-11-30 19:16:32 +01:00
parent 936392f8bd
commit 00701fb874
5 changed files with 51 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ import jakarta.inject.Inject;
import org.hibernate.reactive.mutiny.Mutiny;
import java.util.ArrayList;
import java.util.List;
@WithSession
@ApplicationScoped
@@ -22,7 +23,7 @@ public class RRegister {
CompetitionRepository competitionRepository;
@WSReceiver(code = "getRegister", permission = PermLevel.ADMIN)
public Uni<?> getRegister(WebSocketConnection connection, Object o) {
public Uni<List<CombEntity>> getRegister(WebSocketConnection connection, Object o) {
return competitionRepository.find("uuid", connection.pathParam("uuid")).firstResult()
.call(cm -> Mutiny.fetch(cm.getInsc()))
.call(cm -> Mutiny.fetch(cm.getGuests()))

View File

@@ -34,7 +34,7 @@ public class SRegister {
}
public Uni<Void> sendRegisterRemove(String uuid, Long combId) {
return send(uuid, "sendRegister", combId);
return send(uuid, "sendRegisterRemove", combId);
}
public Uni<Void> send(String uuid, String code, Object data) {