satellite\payments: project limits for coupons increased
Change-Id: I51eb47eb635fd096348befd39b7efbe3ce8982d6
This commit is contained in:
parent
1ad4110d61
commit
f4667426b5
@ -158,7 +158,7 @@ func (paymentService PaymentsService) AddCreditCard(ctx context.Context, creditC
|
|||||||
return Error.Wrap(err)
|
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 {
|
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)))
|
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)))
|
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
|
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 {
|
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)))
|
s.log.Debug(fmt.Sprintf("could not add promotional coupon for user %s", auth.User.ID.String()), zap.Error(Error.Wrap(err)))
|
||||||
}
|
}
|
||||||
|
@ -210,7 +210,7 @@ func (service *Service) updateTransactions(ctx context.Context, ids TransactionA
|
|||||||
cents := convertToCents(rate, &info.Received)
|
cents := convertToCents(rate, &info.Received)
|
||||||
|
|
||||||
if cents >= 5000 {
|
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 {
|
if err != nil {
|
||||||
service.log.Error(fmt.Sprintf("could not add promotional coupon for user %s", userID.String()), zap.Error(err))
|
service.log.Error(fmt.Sprintf("could not add promotional coupon for user %s", userID.String()), zap.Error(err))
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user