Compare commits
No commits in common. "859de0513ae5609d5e5ba658257918db776adefa" and "e2b28a31b2abdc50dcdba8309dbd78448c7a549c" have entirely different histories.
859de0513a
...
e2b28a31b2
@ -1254,8 +1254,7 @@ func (h *Handlers) SetDefaultVoucher(ctx context.Context, sym string, input []by
|
|||||||
// Fetch vouchers from the API using the public key
|
// Fetch vouchers from the API using the public key
|
||||||
vouchersResp, err := h.accountService.FetchVouchers(ctx, string(publicKey))
|
vouchersResp, err := h.accountService.FetchVouchers(ctx, string(publicKey))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
res.FlagSet = append(res.FlagSet, flag_no_active_voucher)
|
return res, err
|
||||||
return res, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return if there is no voucher
|
// Return if there is no voucher
|
||||||
|
@ -202,6 +202,7 @@ func doRequest(ctx context.Context, req *http.Request, rcpt any) (*api.OKRespons
|
|||||||
if len(okResponse.Result) == 0 {
|
if len(okResponse.Result) == 0 {
|
||||||
return nil, errors.New("Empty api result")
|
return nil, errors.New("Empty api result")
|
||||||
}
|
}
|
||||||
|
return &okResponse, nil
|
||||||
|
|
||||||
v, err := json.Marshal(okResponse.Result)
|
v, err := json.Marshal(okResponse.Result)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -1 +1 @@
|
|||||||
You need a voucher to proceed
|
You need a voucher to send
|
@ -1 +1 @@
|
|||||||
Unahitaji sarafu kuendelea
|
Unahitaji sarafu kutuma
|
@ -1,4 +1,3 @@
|
|||||||
CATCH no_voucher flag_no_active_voucher 1
|
|
||||||
LOAD get_vouchers 0
|
LOAD get_vouchers 0
|
||||||
MAP get_vouchers
|
MAP get_vouchers
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
|
Loading…
Reference in New Issue
Block a user