satellite\payments: project limits for coupons increased

Change-Id: I51eb47eb635fd096348befd39b7efbe3ce8982d6
This commit is contained in:
crawter 2020-01-29 19:34:50 +02:00
parent 1ad4110d61
commit f4667426b5
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ func (paymentService PaymentsService) AddCreditCard(ctx context.Context, creditC
return Error.Wrap(err)
}
err = paymentService.AddPromotionalCoupon(ctx, auth.User.ID, 2, 28, memory.GB*5)
err = paymentService.AddPromotionalCoupon(ctx, auth.User.ID, 2, 28, memory.TB)
if err != nil {
paymentService.service.log.Debug(fmt.Sprintf("could not add promotional coupon sof user %s", auth.User.ID.String()), zap.Error(Error.Wrap(err)))
}
@ -863,7 +863,7 @@ func (s *Service) CreateProject(ctx context.Context, projectInfo ProjectInfo) (p
s.log.Debug(fmt.Sprintf("could not add promotional coupon for user %s - no payment methods", auth.User.ID.String()), zap.Error(Error.Wrap(err)))
return p, nil
}
err = s.accounts.Coupons().AddPromotionalCoupon(ctx, auth.User.ID, 2, 28, memory.GB*5)
err = s.accounts.Coupons().AddPromotionalCoupon(ctx, auth.User.ID, 2, 28, memory.TB)
if err != nil {
s.log.Debug(fmt.Sprintf("could not add promotional coupon for user %s", auth.User.ID.String()), zap.Error(Error.Wrap(err)))
}

View File

@ -210,7 +210,7 @@ func (service *Service) updateTransactions(ctx context.Context, ids TransactionA
cents := convertToCents(rate, &info.Received)
if cents >= 5000 {
err = service.Accounts().Coupons().AddPromotionalCoupon(ctx, userID, 2, 28, memory.GB*5)
err = service.Accounts().Coupons().AddPromotionalCoupon(ctx, userID, 2, 28, memory.TB)
if err != nil {
service.log.Error(fmt.Sprintf("could not add promotional coupon for user %s", userID.String()), zap.Error(err))
continue