Skip to content

Commit d37cdff

Browse files
authored
Merge branch 'main' into feature/auth-and-raid-topics
2 parents 98ccd85 + eae009e commit d37cdff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

internal/api/api.go

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/json"
77
"fmt"
88
"log"
9+
"net/http"
910
"net/url"
1011
"runtime"
1112
"sort"
@@ -58,6 +59,11 @@ func NewRequest(method string, path string, queryParameters []string, body []byt
5859
return
5960
}
6061

62+
if resp.StatusCode == http.StatusNoContent {
63+
fmt.Println("Endpoint responded with status 204")
64+
return
65+
}
66+
6167
if prettyPrint == true {
6268
var obj map[string]interface{}
6369
if err := json.Unmarshal(resp.Body, &obj); err != nil {

internal/events/trigger/trigger_event.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func Fire(p TriggerParameters) (string, error) {
9292
JSON: resp.JSON,
9393
Secret: p.Secret,
9494
ForwardAddress: p.ForwardAddress,
95-
Event: p.Event,
95+
Event: e.GetTopic(p.Transport, p.Event),
9696
Type: EventSubMessageTypeNotification,
9797
})
9898
if err != nil {

0 commit comments

Comments
 (0)