Skip to content

Commit

Permalink
Fix: Diiscord Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
Collins C Augustine committed Nov 7, 2024
1 parent 3113776 commit af2d590
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/relayproxy/service/gofeatureflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/thomaspoignant/go-feature-flag/exporter/sqsexporter"
"github.com/thomaspoignant/go-feature-flag/exporter/webhookexporter"
"github.com/thomaspoignant/go-feature-flag/notifier"
"github.com/thomaspoignant/go-feature-flag/notifier/discordnotifier"
"github.com/thomaspoignant/go-feature-flag/notifier/slacknotifier"
"github.com/thomaspoignant/go-feature-flag/notifier/webhooknotifier"
"github.com/thomaspoignant/go-feature-flag/retriever"
Expand Down Expand Up @@ -336,7 +337,8 @@ func initNotifier(c []config.NotifierConf) ([]notifier.Notifier, error) {
Headers: cNotif.Headers,
},
)

case config.DiscordNotifier:
notifiers = append(notifiers, &discordnotifier.Notifier{DiscordWebhookURL: cNotif.WebhookURL})
default:
return nil, fmt.Errorf("invalid notifier: kind \"%s\" is not supported", cNotif.Kind)
}
Expand Down

0 comments on commit af2d590

Please sign in to comment.