@@ -39,6 +39,7 @@ type Services struct {
3939 SystemUpgrade * services.SystemUpgradeService
4040 Updater * services.UpdaterService
4141 Event * services.EventService
42+ Activity * services.ActivityService
4243 Version * services.VersionService
4344 Notification * services.NotificationService
4445 Apprise * services.AppriseService //nolint:staticcheck // Apprise still functional, deprecated in favor of Shoutrrr
@@ -55,6 +56,7 @@ func initializeServices(ctx context.Context, db *database.DB, cfg *config.Config
5556 svcs = & Services {}
5657
5758 svcs .Event = services .NewEventService (db , cfg , httpClient )
59+ svcs .Activity = services .NewActivityService (db )
5860 svcs .Settings , err = services .NewSettingsService (ctx , db )
5961 if err != nil {
6062 return nil , nil , fmt .Errorf ("failed to settings service: %w" , err )
@@ -76,8 +78,8 @@ func initializeServices(ctx context.Context, db *database.DB, cfg *config.Config
7678 svcs .Version = services .NewVersionService (httpClient , cfg .UpdateCheckDisabled , config .Version , config .Revision , svcs .ContainerRegistry , svcs .Docker )
7779 svcs .Notification = services .NewNotificationService (db , cfg , svcs .Environment )
7880 svcs .Apprise = services .NewAppriseService (db , cfg )
79- svcs .Vulnerability = services .NewVulnerabilityService (db , svcs .Docker , svcs .Event , svcs .Settings , svcs .Notification )
80- svcs .ImageUpdate = services .NewImageUpdateService (db , svcs .Settings , svcs .ContainerRegistry , svcs .Docker , svcs .Event , svcs .Notification )
81+ svcs .Vulnerability = services .NewVulnerabilityService (db , svcs .Docker , svcs .Event , svcs .Settings , svcs .Notification , svcs . Activity )
82+ svcs .ImageUpdate = services .NewImageUpdateService (db , svcs .Settings , svcs .ContainerRegistry , svcs .Docker , svcs .Event , svcs .Notification , svcs . Activity )
8183 svcs .Image = services .NewImageService (db , svcs .Docker , svcs .ContainerRegistry , svcs .ImageUpdate , svcs .Vulnerability , svcs .Event )
8284 svcs .GitRepository = services .NewGitRepositoryService (db , cfg .GitWorkDir , svcs .Event , svcs .Settings )
8385 svcs .Build = services .NewBuildService (db , svcs .Settings , svcs .Docker , svcs .ContainerRegistry , svcs .GitRepository )
@@ -102,9 +104,9 @@ func initializeServices(ctx context.Context, db *database.DB, cfg *config.Config
102104 svcs .Template = services .NewTemplateService (ctx , db , httpClient , svcs .Settings )
103105 svcs .Auth = services .NewAuthService (svcs .User , svcs .Settings , svcs .Event , cfg .JWTSecret , cfg )
104106 svcs .Oidc = services .NewOidcService (svcs .Auth , cfg , httpClient )
105- svcs .System = services .NewSystemService (db , svcs .Docker , svcs .Container , svcs .Image , svcs .Volume , svcs .Network , svcs .Settings )
107+ svcs .System = services .NewSystemService (db , svcs .Docker , svcs .Container , svcs .Image , svcs .Volume , svcs .Network , svcs .Settings , svcs . Activity )
106108 svcs .SystemUpgrade = services .NewSystemUpgradeService (svcs .Docker , svcs .Version , svcs .Event , svcs .Settings )
107- svcs .Updater = services .NewUpdaterService (db , svcs .Settings , svcs .Docker , svcs .Project , svcs .ImageUpdate , svcs .ContainerRegistry , svcs .Event , svcs .Image , svcs .Notification , svcs .SystemUpgrade )
109+ svcs .Updater = services .NewUpdaterService (db , svcs .Settings , svcs .Docker , svcs .Project , svcs .ImageUpdate , svcs .ContainerRegistry , svcs .Event , svcs .Image , svcs .Notification , svcs .SystemUpgrade , svcs . Activity )
108110 svcs .GitOpsSync = services .NewGitOpsSyncService (db , svcs .GitRepository , svcs .Project , svcs .Swarm , svcs .Event , svcs .Settings )
109111 svcs .Webhook = services .NewWebhookService (db , svcs .Container , svcs .Updater , svcs .Project , svcs .GitOpsSync , svcs .Event )
110112
0 commit comments