Skip to content

Commit

Permalink
fix: Give access to 5$ sponsors tier
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed May 8, 2022
1 parent 882c34d commit bfdd70c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/api.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ func (r *userResolver) Features(ctx context.Context, obj *generated.User) ([]typ
return nil, err
}

if query.User.SponsorshipForViewerAsSponsorable.Tier.MonthlyPriceInDollars > 5 {
if query.User.SponsorshipForViewerAsSponsorable.Tier.MonthlyPriceInDollars >= 5 {
features = append(features, typesgen.FeatureDiscordAccess)
}

if query.User.SponsorshipForViewerAsSponsorable.Tier.MonthlyPriceInDollars > 25 {
if query.User.SponsorshipForViewerAsSponsorable.Tier.MonthlyPriceInDollars >= 25 {
features = append(features, typesgen.FeatureBetaAccess)
}

Expand Down

0 comments on commit bfdd70c

Please sign in to comment.