summaryrefslogtreecommitdiff
path: root/app/controllers/sparkles/init.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
committermo khan <mo@mokhan.ca>2025-04-25 15:36:04 -0600
commit786c4d2cd0860032e2624cadbbf54891d4269ae2 (patch)
tree3ad2aa0e298d97b431982183224c1e8c6a7ed817 /app/controllers/sparkles/init.go
parent8836d0744aed44435e35af78d7533ff09db0c62e (diff)
refactor: move key pacakge to cfg
Diffstat (limited to 'app/controllers/sparkles/init.go')
-rw-r--r--app/controllers/sparkles/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/sparkles/init.go b/app/controllers/sparkles/init.go
index 2586c9a..1118a09 100644
--- a/app/controllers/sparkles/init.go
+++ b/app/controllers/sparkles/init.go
@@ -6,8 +6,8 @@ import (
"github.com/xlgmokha/x/pkg/log"
"github.com/xlgmokha/x/pkg/mapper"
"github.com/xlgmokha/x/pkg/serde"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/cfg"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/domain"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/key"
)
func init() {
@@ -16,7 +16,7 @@ func init() {
if err != nil {
log.WithFields(r.Context(), log.Fields{"error": err})
}
- sparkle.Author = key.CurrentUser.From(r.Context())
+ sparkle.Author = cfg.CurrentUser.From(r.Context())
return sparkle
})
}