File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
3333 Subscription : models.EventsubSubscription {
3434 ID : params .ID ,
3535 Status : params .SubscriptionStatus ,
36- Type : "channel.follow" ,
36+ Type : triggerMapping [params. Transport ][params. Trigger ] ,
3737 Version : e .SubscriptionVersion (),
3838 Condition : models.EventsubCondition {
3939 BroadcasterUserID : params .ToUserID ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
4747 Subscription : models.EventsubSubscription {
4848 ID : params .ID ,
4949 Status : params .SubscriptionStatus ,
50- Type : "channel.update" ,
50+ Type : triggerMapping [params. Transport ][params. Trigger ] ,
5151 Version : e .SubscriptionVersion (),
5252 Condition : models.EventsubCondition {
5353 BroadcasterUserID : params .ToUserID ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ func (e Event) GenerateEvent(params events.MockEventParameters) (events.MockEven
3333 Subscription : models.EventsubSubscription {
3434 ID : params .ID ,
3535 Status : params .SubscriptionStatus ,
36- Type : "user.update" ,
36+ Type : triggerMapping [params. Transport ][params. Trigger ] ,
3737 Version : e .SubscriptionVersion (),
3838 Condition : models.EventsubCondition {
3939 UserID : params .ToUserID ,
You can’t perform that action at this time.
0 commit comments