From 9c1b4d1f4d2cc83c39e8a42deab2005755857069 Mon Sep 17 00:00:00 2001 From: Joel-Haeberli Date: Tue, 15 Aug 2023 20:27:28 +0200 Subject: [PATCH] fix: package prefix for transaction mode constant --- momentum-core/routers/application-router.go | 2 +- momentum-core/routers/deployment-router.go | 2 +- momentum-core/routers/stage-router.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/momentum-core/routers/application-router.go b/momentum-core/routers/application-router.go index 358bbc0..1dc2847 100644 --- a/momentum-core/routers/application-router.go +++ b/momentum-core/routers/application-router.go @@ -114,7 +114,7 @@ func (a *ApplicationRouter) addApplication(c *gin.Context) { return } - ctx, transaction, err := gittransaction.New(TRANSACTION_MODE, repo.Path, a.config.TransactionToken()) + ctx, transaction, err := gittransaction.New(config.TRANSACTION_MODE, repo.Path, a.config.TransactionToken()) application, err := a.applicationService.AddApplication(request, traceId) if err != nil { diff --git a/momentum-core/routers/deployment-router.go b/momentum-core/routers/deployment-router.go index b90567f..72637d0 100644 --- a/momentum-core/routers/deployment-router.go +++ b/momentum-core/routers/deployment-router.go @@ -94,7 +94,7 @@ func (d *DeploymentRouter) addDeployment(c *gin.Context) { return } - ctx, transaction, err := gittransaction.New(TRANSACTION_MODE, repo.Path, d.config.TransactionToken()) + ctx, transaction, err := gittransaction.New(config.TRANSACTION_MODE, repo.Path, d.config.TransactionToken()) deployment, err := d.deploymentService.AddDeployment(request, traceId) if err != nil { diff --git a/momentum-core/routers/stage-router.go b/momentum-core/routers/stage-router.go index e535cbe..d978e89 100644 --- a/momentum-core/routers/stage-router.go +++ b/momentum-core/routers/stage-router.go @@ -94,7 +94,7 @@ func (sr *StageRouter) addStage(c *gin.Context) { return } - ctx, transaction, err := gittransaction.New(TRANSACTION_MODE, repo.Path, sr.config.TransactionToken()) + ctx, transaction, err := gittransaction.New(config.TRANSACTION_MODE, repo.Path, sr.config.TransactionToken()) stage, err := sr.stageService.AddStage(request, traceId) if err != nil {