mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-12 04:39:05 +02:00
refactor: move API key cleanup job to actor (#1687)
This commit is contained in:
@@ -170,8 +170,12 @@ func initServices(
|
||||
}
|
||||
|
||||
svc.apiKeyModule, err = apikey.New(ctx, apikey.Dependencies{
|
||||
DB: db,
|
||||
StaticApiKey: common.EnvConfig.StaticApiKey,
|
||||
DB: db,
|
||||
Actors: actors,
|
||||
StaticApiKey: common.EnvConfig.StaticApiKey,
|
||||
AppConfig: svc.appConfigService,
|
||||
EmailSender: svc.emailModule,
|
||||
CleanupDisabled: common.EnvConfig.AppEnv.IsTest(),
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create API key module: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user