Skip to content

Commit fcbd718

Browse files
committed
Changed subscription.type to be consistent with every other event file
1 parent bfce5cc commit fcbd718

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/events/types/follow/follow_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

internal/events/types/stream_change/stream_change_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

internal/events/types/user/user_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)