Skip to content

Commit f7e353f

Browse files
committed
/mock/users/follows returns 410 Gone; Removed channel.follow v1
1 parent e85a245 commit f7e353f

File tree

6 files changed

+7
-213
lines changed

6 files changed

+7
-213
lines changed

internal/events/types/follow_v2/follow_event.go renamed to internal/events/types/follow/follow_event.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
package follow_v2
3+
package follow
44

55
import (
66
"encoding/json"

internal/events/types/follow_v1/follow_event_test.go renamed to internal/events/types/follow/follow_event_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
package follow_v1
3+
package follow
44

55
import (
66
"encoding/json"

internal/events/types/follow_v1/follow_event.go

-129
This file was deleted.

internal/events/types/follow_v2/follow_event_test.go

-78
This file was deleted.

internal/events/types/types.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import (
2020
"github.com/twitchdev/twitch-cli/internal/events/types/cheer"
2121
"github.com/twitchdev/twitch-cli/internal/events/types/drop"
2222
"github.com/twitchdev/twitch-cli/internal/events/types/extension_transaction"
23-
"github.com/twitchdev/twitch-cli/internal/events/types/follow_v1"
24-
"github.com/twitchdev/twitch-cli/internal/events/types/follow_v2"
23+
"github.com/twitchdev/twitch-cli/internal/events/types/follow"
2524
"github.com/twitchdev/twitch-cli/internal/events/types/gift"
2625
"github.com/twitchdev/twitch-cli/internal/events/types/goal"
2726
"github.com/twitchdev/twitch-cli/internal/events/types/hype_train"
@@ -51,8 +50,7 @@ func AllEvents() []events.MockEvent {
5150
cheer.Event{},
5251
drop.Event{},
5352
extension_transaction.Event{},
54-
follow_v1.Event{},
55-
follow_v2.Event{},
53+
follow.Event{},
5654
gift.Event{},
5755
goal.Event{},
5856
hype_train.Event{},

internal/mock_api/endpoints/endpoints.go

+3
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,8 @@ func Gone() map[string][]string {
110110
"/soundtrack/playlists": {
111111
"GET",
112112
},
113+
"/users/follows": {
114+
"GET",
115+
},
113116
}
114117
}

0 commit comments

Comments
 (0)