Skip to content

Commit e53c591

Browse files
committed
Yes
1 parent c6ed103 commit e53c591

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/web/api/stats.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ type Stats struct {
2525
OnlinePlayers int `json:"onlinePlayers"`
2626

2727
Builds map[string]int `json:"builds"`
28+
29+
// For compatibility with old Meteor versions that check this field without a safety check
30+
Version string `json:"version"`
2831
}
2932

3033
var builds map[string]int
@@ -53,6 +56,7 @@ func StatsHandler(w http.ResponseWriter, r *http.Request) {
5356
Downloads: g.Downloads,
5457
OnlinePlayers: GetPlayingCount(),
5558
Builds: builds,
59+
Version: "0.0.0",
5660
})
5761
} else {
5862
stats, err := db.GetJoinStats(date)

0 commit comments

Comments
 (0)