fixed function call

This commit is contained in:
2021-10-16 03:43:34 +02:00
parent 867e85b007
commit 716a966551

View File

@@ -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)