Admin page raid group tab working

This commit is contained in:
2025-03-05 20:12:32 -05:00
parent f528cbaa2b
commit aff81e27eb
23 changed files with 624 additions and 7 deletions

View File

@@ -92,6 +92,10 @@ public class GameService{
//Read
public Game getGameById(UUID gameId){
return gameRepository.findById(gameId).orElse(null);
}
public List<Game> getGames(int page, int pageSize){
return gameRepository.findAll(PageRequest.of(page, pageSize, Sort.by("gameName").ascending())).getContent();
}