Skip to content

Commit 7fad52f

Browse files
authored
Fix Chairty to use the correct type when building a payload.
Using goal/goal_event as a basis for the "find the type to use"
1 parent b7b7fb7 commit 7fad52f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/events/types/charity/charity_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
137137
body := models.EventsubResponse{
138138
Subscription: models.EventsubSubscription{
139139
ID: params.ID,
140-
Type: "channel.charity_campaign.donate",
140+
Type: triggerMapping[params.Transport][params.Trigger],
141141
Version: e.SubscriptionVersion(),
142142
Status: params.SubscriptionStatus,
143143
Cost: 0,

0 commit comments

Comments
 (0)