Admin page raid group tab working
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user