Skip to content

Commit f30a994

Browse files
committed
refactor: remove a lot of dead code from old api
1 parent bc09748 commit f30a994

File tree

47 files changed

+70
-2866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+70
-2866
lines changed

apps/api-gql/internal/delivery/gql/resolvers/rewards.resolver.go

+10-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/api-gql/internal/delivery/gql/schema/rewards.graphqls

+1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ type TwitchReward {
1313
backgroundColor: String!
1414
enabled: Boolean!
1515
usedTimes: Int!
16+
userInputRequired: Boolean!
1617
}

apps/api/app/app.go

-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"github.com/redis/go-redis/v9"
1111
"github.com/satont/twir/apps/api/internal/files"
1212
"github.com/satont/twir/apps/api/internal/handlers"
13-
"github.com/satont/twir/apps/api/internal/impl_admin"
1413
"github.com/satont/twir/apps/api/internal/impl_protected"
1514
"github.com/satont/twir/apps/api/internal/impl_unprotected"
1615
"github.com/satont/twir/apps/api/internal/interceptors"
@@ -68,11 +67,9 @@ var App = fx.Options(
6867
interceptors.New,
6968
impl_protected.New,
7069
impl_unprotected.New,
71-
impl_admin.New,
7270
ttscache.NewTTSSettings,
7371
handlers.AsHandler(twirp_handlers.NewProtected),
7472
handlers.AsHandler(twirp_handlers.NewUnProtected),
75-
handlers.AsHandler(twirp_handlers.NewAdmin),
7673
handlers.AsHandler(webhooks.NewDonateStream),
7774
handlers.AsHandler(webhooks.NewDonatello),
7875
handlers.AsHandler(files.NewFiles),

apps/api/internal/impl_admin/badges/badges.go

-243
This file was deleted.

apps/api/internal/impl_admin/impl_admin.go

-68
This file was deleted.

0 commit comments

Comments
 (0)