Skip to content

Commit

Permalink
compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowing committed Jan 6, 2020
1 parent ca51709 commit 7e89527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/db/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,9 @@ func (m *MatchData) BuildMatchDict() (*MatchConfig, error) {
}

// GetMapStat Gets each map stat data as "MapStatsData" struct array.
func (m *MatchData) GetMapStat() (*[]MapStatsData, error) {
func (m *MatchData) GetMapStat() ([]MapStatsData, error) {
SQLAccess.Gorm.Limit(7).Where("match_id = ?", int(m.ID)).Find(&m.MapStats)
return &m.MapStats, nil
return m.MapStats, nil
}

// MapStatsData MapStatsData struct for map_stats table.
Expand Down

0 comments on commit 7e89527

Please sign in to comment.