fixed function call
This commit is contained in:
2
main.go
2
main.go
@@ -163,7 +163,7 @@ func getPlayer(w http.ResponseWriter, r *http.Request) {
|
||||
metaStats := new(utils.MatchStats)
|
||||
err = rdc.Get(context.Background(), fmt.Sprintf("csgowtfd_meta_%d", tPlayer.ID), &metaStats)
|
||||
if err != nil {
|
||||
wins, ties, losses, err := utils.GetMatchStats(db.Client, db.Lock, tPlayer)
|
||||
wins, ties, losses, err := utils.GetMatchStats(tPlayer, db.Lock)
|
||||
if err != nil {
|
||||
log.Errorf("[GP] Error retrieving match-stats for player %s: %v", id, err)
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
|
Reference in New Issue
Block a user