fix: version checker

This commit is contained in:
Steven
2023-11-06 22:33:12 +08:00
parent 363c107359
commit 342d1aeefb
3 changed files with 17 additions and 22 deletions

View File

@@ -110,7 +110,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
}
func (s *Server) Start(ctx context.Context) error {
go versionchecker.NewVersionChecker(s.Store).Start(ctx)
go versionchecker.NewVersionChecker(s.Store, s.Profile).Start(ctx)
go s.telegramBot.Start(ctx)
go s.backupRunner.Run(ctx)