Return more data per player on listing all players
This commit is contained in:
@@ -40,6 +40,9 @@ var as AssociationService
|
||||
//go:embed selectPlayer.sql
|
||||
var selectPlayer string
|
||||
|
||||
//go:embed selectPlayers.sql
|
||||
var selectPlayers string
|
||||
|
||||
//go:embed selectAssociation.sql
|
||||
var selectAssociation string
|
||||
|
||||
@@ -122,7 +125,7 @@ func GetPlayer(c fiber.Ctx) error {
|
||||
}
|
||||
|
||||
func GetPlayers(c fiber.Ctx) error {
|
||||
players, err := ps.Query(PlayerServiceQuery{})
|
||||
players, err := ps.GetAllPlayers()
|
||||
if err != nil {
|
||||
Error.Printf("Failed getting players: %v", err)
|
||||
return c.Status(500).JSON(Response{
|
||||
|
||||
Reference in New Issue
Block a user