We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6ed103 commit e53c591Copy full SHA for e53c591
pkg/web/api/stats.go
@@ -25,6 +25,9 @@ type Stats struct {
25
OnlinePlayers int `json:"onlinePlayers"`
26
27
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"`
31
}
32
33
var builds map[string]int
@@ -53,6 +56,7 @@ func StatsHandler(w http.ResponseWriter, r *http.Request) {
53
56
Downloads: g.Downloads,
54
57
OnlinePlayers: GetPlayingCount(),
55
58
Builds: builds,
59
+ Version: "0.0.0",
60
})
61
} else {
62
stats, err := db.GetJoinStats(date)
0 commit comments