Archived
1

Fixing error with chats statistics

This commit is contained in:
Vladimir Hodakov 2018-02-06 13:53:19 +04:00
parent feb1899992
commit 56987f001a

View File

@ -30,10 +30,12 @@ func (s *Statistics) SquadStatictics(squadID int) string {
playerRaw, err := c.DataCache.GetPlayerByID(squadMembers[i].PlayerID) playerRaw, err := c.DataCache.GetPlayerByID(squadMembers[i].PlayerID)
if err != nil { if err != nil {
c.Log.Error(err.Error()) c.Log.Error(err.Error())
continue
} }
profileRaw, err := c.DataCache.GetProfileByPlayerID(playerRaw.ID) profileRaw, err := c.DataCache.GetProfileByPlayerID(playerRaw.ID)
if err != nil { if err != nil {
c.Log.Error(err.Error()) c.Log.Error(err.Error())
continue
} }
fullInfo.Squad = squad fullInfo.Squad = squad