Forgot two ID uppercasings

Co-authored-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
Scott Weber 2023-01-31 14:21:37 -05:00 committed by GitHub
parent fa0a69d746
commit 8d4c8afef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ type Config struct {
*bridgeconfig.BaseConfig `yaml:",inline"`
SegmentKey string `yaml:"segment_key"`
SegmentUserId string `yaml:"segment_user_id"`
SegmentUserID string `yaml:"segment_user_id"`
Metrics struct {
Enabled bool `yaml:"enabled"`

View file

@ -93,7 +93,7 @@ func (br *WABridge) Init() {
Segment.log = br.Log.Sub("Segment")
Segment.key = br.Config.SegmentKey
Segment.userID = br.Config.SegmentUserId
Segment.userID = br.Config.SegmentUserID
if Segment.IsEnabled() {
Segment.log.Infoln("Segment metrics are enabled")
if Segment.userID != "" {