diff --git a/main.go b/main.go index 845ed4b..0d2457c 100644 --- a/main.go +++ b/main.go @@ -637,7 +637,7 @@ func getMatchChat(w http.ResponseWriter, r *http.Request) { return } - tStats, err := db.Messages.Query().Where(messages.HasMatchPlayerWith(matchplayer.HasMatchesWith(match.ID(matchId)))).All(context.Background()) + tStats, err := db.Messages.Query().Where(messages.HasMatchPlayerWith(matchplayer.HasMatchesWith(match.ID(matchId)))).WithMatchPlayer().All(context.Background()) if err != nil { log.Infof("[GMC] match %d not found: %+v", matchId, err) w.WriteHeader(http.StatusNotFound)