Skip to content

Commit

Permalink
chore(warehouse): add user transformer url env (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayachand authored Nov 3, 2022
1 parent e9aff77 commit 00ba231
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion processor/integrations/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
var (
jsonfast = jsoniter.ConfigCompatibleWithStandardLibrary
destTransformURL string
userTransformURL string
postParametersTFields []string
)

Expand All @@ -32,6 +33,7 @@ func Init() {

func loadConfig() {
destTransformURL = config.GetString("DEST_TRANSFORM_URL", "http://localhost:9090")
userTransformURL = config.GetString("USER_TRANSFORM_URL", destTransformURL)
}

const (
Expand Down Expand Up @@ -182,7 +184,7 @@ func GetDestinationURL(destType string) string {

// GetUserTransformURL returns the port of running user transform
func GetUserTransformURL() string {
return destTransformURL + "/customTransform"
return userTransformURL + "/customTransform"
}

// GetTrackingPlanValidationURL returns the port of running tracking plan validation
Expand Down

0 comments on commit 00ba231

Please sign in to comment.