fixed matchPlayer edge not populated
This commit is contained in:
2
main.go
2
main.go
@@ -637,7 +637,7 @@ func getMatchChat(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
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 {
|
if err != nil {
|
||||||
log.Infof("[GMC] match %d not found: %+v", matchId, err)
|
log.Infof("[GMC] match %d not found: %+v", matchId, err)
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
|
Reference in New Issue
Block a user