mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
feat: auth method projection (#3020)
* feat: auth method projection * feat: auth method projection * feat: add tests
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user