feat: auth method projection (#3020)

* feat: auth method projection

* feat: auth method projection

* feat: add tests
This commit is contained in:
Fabi
2022-01-19 14:49:50 +01:00
committed by GitHub
parent c2e6fd8f40
commit 3902f9adb5
6 changed files with 481 additions and 1 deletions

View File

@@ -39,7 +39,10 @@ func InitChatChannel(config ChatConfig) (channels.NotificationChannel, error) {
}
func sendMessage(message string, chatUrl *url.URL) error {
req, err := json.Marshal(message)
chatMsg := &struct {
Text string `json:"text"`
}{Text: message}
req, err := json.Marshal(chatMsg)
if err != nil {
return caos_errs.ThrowInternal(err, "PROVI-s8uie", "Could not unmarshal content")
}