mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 14:01:46 +02:00
Call TrackUsageData(true) to enable usage data tracking, which was accidentally disabled during server refactoring
This commit is contained in:
parent
ce9ccce431
commit
1a144e4e70
@ -524,7 +524,7 @@ func TestDeletionRequests(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestHealthcheck(t *testing.T) {
|
func TestHealthcheck(t *testing.T) {
|
||||||
s := NewServer(DB, TrackUsageData(false))
|
s := NewServer(DB, TrackUsageData(true))
|
||||||
w := httptest.NewRecorder()
|
w := httptest.NewRecorder()
|
||||||
s.healthCheckHandler(w, httptest.NewRequest(http.MethodGet, "/", nil))
|
s.healthCheckHandler(w, httptest.NewRequest(http.MethodGet, "/", nil))
|
||||||
if w.Code != 200 {
|
if w.Code != 200 {
|
||||||
|
@ -180,6 +180,7 @@ func main() {
|
|||||||
server.IsProductionEnvironment(isProductionEnvironment()),
|
server.IsProductionEnvironment(isProductionEnvironment()),
|
||||||
server.WithCron(cron),
|
server.WithCron(cron),
|
||||||
server.WithUpdateInfo(release.BuildUpdateInfo(release.Version)),
|
server.WithUpdateInfo(release.BuildUpdateInfo(release.Version)),
|
||||||
|
server.TrackUsageData(true),
|
||||||
)
|
)
|
||||||
|
|
||||||
go runBackgroundJobs(context.Background(), srv, db, stats)
|
go runBackgroundJobs(context.Background(), srv, db, stats)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user