Add database integrations for status and updates modules

This commit is contained in:
Daniel
2019-02-07 20:20:21 +01:00
parent 321f3feec5
commit 12e1eb0917
10 changed files with 182 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ var (
)
func init() {
modules.Register("updates", prep, start, nil, "database")
modules.Register("updates", prep, start, nil, "global", "database")
}
func prep() error {
@@ -30,7 +30,12 @@ func prep() error {
}
func start() error {
err := ReloadLatest()
err := initUpdateStatusHook()
if err != nil {
return err
}
err = ReloadLatest()
if err != nil {
return err
}