Call TrackUsageData(true) to enable usage data tracking, which was accidentally disabled during server refactoring

This commit is contained in:
David Dworken 2023-09-24 14:17:15 -07:00
parent ce9ccce431
commit 1a144e4e70
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -524,7 +524,7 @@ func TestDeletionRequests(t *testing.T) {
}
func TestHealthcheck(t *testing.T) {
s := NewServer(DB, TrackUsageData(false))
s := NewServer(DB, TrackUsageData(true))
w := httptest.NewRecorder()
s.healthCheckHandler(w, httptest.NewRequest(http.MethodGet, "/", nil))
if w.Code != 200 {

View File

@ -180,6 +180,7 @@ func main() {
server.IsProductionEnvironment(isProductionEnvironment()),
server.WithCron(cron),
server.WithUpdateInfo(release.BuildUpdateInfo(release.Version)),
server.TrackUsageData(true),
)
go runBackgroundJobs(context.Background(), srv, db, stats)