Skip to content

Commit

Permalink
Update webhook format
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieegan3 committed Sep 28, 2022
1 parent 3f488b5 commit d50226c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import (
)

func Send(endpoint, title, body, linkURL string) error {
data := map[string]string{
"Title": title,
"Body": body,
"URL": linkURL,
data := []map[string]string{
{
"Title": title,
"Body": body,
"URL": linkURL,
},
}

b, err := json2.Marshal(data)
Expand Down

0 comments on commit d50226c

Please sign in to comment.