Skip to content

Commit 0b70525

Browse files
authored
adds neosync exclusion (#3532)
1 parent e066cda commit 0b70525

File tree

1 file changed

+11
-1
lines changed
  • backend/services/mgmt/v1alpha1/user-account-service

1 file changed

+11
-1
lines changed

backend/services/mgmt/v1alpha1/user-account-service/billing.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ import (
2525

2626
var (
2727
// 14 days duration
28-
trialDuration = 14 * 24 * time.Hour
28+
trialDuration = 14 * 24 * time.Hour
29+
stripeExclusionSet = map[string]bool{
30+
"8428f91a-f377-406e-b81b-55c92f853a9b": true,
31+
}
2932
)
3033

3134
func (s *Service) GetAccountStatus(
@@ -77,6 +80,13 @@ func (s *Service) GetAccountStatus(
7780
}), nil
7881
}
7982

83+
if stripeExclusionSet[req.Msg.GetAccountId()] {
84+
logger.Debug("account is in stripe exclusion set, returning active status")
85+
return connect.NewResponse(&mgmtv1alpha1.GetAccountStatusResponse{
86+
SubscriptionStatus: mgmtv1alpha1.BillingStatus_BILLING_STATUS_ACTIVE,
87+
}), nil
88+
}
89+
8090
logger.Debug("attempting to find active stripe subscription")
8191
subscriptions, err := s.getStripeSubscriptions(account.StripeCustomerID.String)
8292
if err != nil {

0 commit comments

Comments
 (0)