satellite\payments: amount for coupons increased

Change-Id: I1f357b76361e6e3e50bbe4ee66a8edb6ff033f36
This commit is contained in:
crawter 2020-01-29 22:08:54 +02:00
parent da5e408afe
commit 9bb7ceb651
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.TB)
err = paymentService.AddPromotionalCoupon(ctx, auth.User.ID, 2, 5500, 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.TB)
err = s.accounts.Coupons().AddPromotionalCoupon(ctx, auth.User.ID, 2, 5500, 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.TB)
err = service.Accounts().Coupons().AddPromotionalCoupon(ctx, userID, 2, 5500, memory.TB)
if err != nil {
service.log.Error(fmt.Sprintf("could not add promotional coupon for user %s", userID.String()), zap.Error(err))
continue