Skip to content

Commit e2919d0

Browse files
committed
fixed balance in vouchers
1 parent a24994c commit e2919d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/app/user_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ func (a *App) ApplyForVoucherHandler(req *http.Request) (interface{}, Response)
743743
}
744744
middlewares.VoucherApplied.WithLabelValues(userID, voucher.Voucher, fmt.Sprint(voucher.Balance)).Inc()
745745

746-
if err := a.logUserVoucherApply(userID, a.config.Currency, input.Balance); err != nil {
746+
if err := a.logUserVoucherApply(userID, a.config.Currency, a.config.VoucherBalance); err != nil {
747747
log.Error().Err(err).Send()
748748
return nil, InternalServerError(errors.New(internalServerErrorMsg))
749749
}

0 commit comments

Comments
 (0)