Skip to content

Commit

Permalink
feat(BUX-417): remove unused env (#408)
Browse files Browse the repository at this point in the history
* chore(BUX-417): remove DefaultNote and SkipInitializeWithVersion

* chore(BUX-417): update bux version
  • Loading branch information
pawellewandowski98 authored and wregulski committed Feb 2, 2024
1 parent cd03af7 commit 6eb163c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast"
]
}
],
"[go][go.mod]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
}
2 changes: 0 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ type PaymailConfig struct {
Beef *BeefConfig `json:"beef" mapstructure:"beef"`
// DefaultFromPaymail IE: from@domain.com.
DefaultFromPaymail string `json:"default_from_paymail" mapstructure:"default_from_paymail"`
// DefaultNote IE: message needed for address resolution.
DefaultNote string `json:"default_note" mapstructure:"default_note"`
// Domains is a list of allowed domains.
Domains []string `json:"domains" mapstructure:"domains"`
// DomainValidationEnabled should be turned off if hosted domain is not paymail related.
Expand Down
1 change: 0 additions & 1 deletion config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ func getPaymailDefaults() *PaymailConfig {
PulseAuthToken: "mQZQ6WmxURxWz5ch", // #nosec G101
},
DefaultFromPaymail: "from@domain.com",
DefaultNote: "bux Address Resolution",
Domains: []string{"localhost"},
DomainValidationEnabled: true,
SenderValidationEnabled: false,
Expand Down
1 change: 0 additions & 1 deletion config/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ func loadPaymail(appConfig *AppConfig, options []bux.ClientOps) []bux.ClientOps
options = append(options, bux.WithPaymailSupport(
pm.Domains,
pm.DefaultFromPaymail,
pm.DefaultNote,
pm.DomainValidationEnabled,
pm.SenderValidationEnabled,
))
Expand Down

0 comments on commit 6eb163c

Please sign in to comment.