Compare commits

..

No commits in common. "584d02db294ee95aa83eac407043c5729ca8e102" and "5937c6bf5c647860f132f5893c7cf8638b9c6716" have entirely different histories.

5 changed files with 4 additions and 5 deletions

View File

@ -1254,8 +1254,7 @@ func (h *Handlers) SetDefaultVoucher(ctx context.Context, sym string, input []by
// Fetch vouchers from the API using the public key
vouchersResp, err := h.accountService.FetchVouchers(ctx, string(publicKey))
if err != nil {
res.FlagSet = append(res.FlagSet, flag_no_active_voucher)
return res, nil
return res, err
}
// Return if there is no voucher

View File

@ -202,6 +202,7 @@ func doRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKRespons
if len(okResponse.Result) == 0 {
return nil, errors.New("Empty api result")
}
return &okResponse, nil
v, err := json.Marshal(okResponse.Result)
if err != nil {

View File

@ -1 +1 @@
You need a voucher to proceed
You need a voucher to send

View File

@ -1 +1 @@
Unahitaji sarafu kuendelea
Unahitaji sarafu kutuma

View File

@ -1,4 +1,3 @@
CATCH no_voucher flag_no_active_voucher 1
LOAD get_vouchers 0
MAP get_vouchers
MOUT back 0