fix analytics not loading

This commit is contained in:
Azareal 2021-05-03 11:23:37 +10:00
parent 513bb3c967
commit 2550ee1ce1
1 changed files with 2 additions and 0 deletions

View File

@ -274,6 +274,7 @@ func storeInit() (e error) {
if e != nil { if e != nil {
return ws(e) return ws(e)
} }
c.Analytics = c.NewDefaultAnalytics()
c.Activity, e = c.NewDefaultActivityStream(acc) c.Activity, e = c.NewDefaultActivityStream(acc)
if e != nil { if e != nil {
return ws(e) return ws(e)
@ -600,6 +601,7 @@ func main() {
log.Print("Received a signal to shutdown: ", sig) log.Print("Received a signal to shutdown: ", sig)
// TODO: Gracefully shutdown the HTTP server // TODO: Gracefully shutdown the HTTP server
c.Tasks.Shutdown.Run() c.Tasks.Shutdown.Run()
log.Print("Ran shutdown tasks")
c.StoppedServer("Stopped server") c.StoppedServer("Stopped server")
}() }()