satellite/console: remove unused arguments

Change-Id: I3ef2b244137391daafee209e20cec383c6772e2e
This commit is contained in:
Michal Niewrzal 2020-05-12 12:05:52 +02:00
parent 65f3e26f80
commit 0619f97e20

View File

@ -174,7 +174,7 @@ func (paymentService PaymentsService) AddCreditCard(ctx context.Context, creditC
return Error.Wrap(err)
}
err = paymentService.AddPromotionalCoupon(ctx, auth.User.ID, 2, 5500, memory.TB)
err = paymentService.AddPromotionalCoupon(ctx, auth.User.ID)
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)))
}
@ -361,7 +361,7 @@ func (paymentService PaymentsService) PopulatePromotionalCoupons(ctx context.Con
}
// AddPromotionalCoupon creates new coupon for specified user.
func (paymentService PaymentsService) AddPromotionalCoupon(ctx context.Context, userID uuid.UUID, duration int, amount int64, limit memory.Size) (err error) {
func (paymentService PaymentsService) AddPromotionalCoupon(ctx context.Context, userID uuid.UUID) (err error) {
defer mon.Task()(&ctx, userID)(&err)
cards, err := paymentService.ListCreditCards(ctx)