Compare commits
3 Commits
e2b28a31b2
...
859de0513a
Author | SHA1 | Date | |
---|---|---|---|
859de0513a | |||
266d3d06c3 | |||
92ea3df4aa |
@ -1254,7 +1254,8 @@ 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 {
|
||||
return res, err
|
||||
res.FlagSet = append(res.FlagSet, flag_no_active_voucher)
|
||||
return res, nil
|
||||
}
|
||||
|
||||
// Return if there is no voucher
|
||||
|
@ -202,7 +202,6 @@ 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 {
|
||||
|
@ -1 +1 @@
|
||||
You need a voucher to send
|
||||
You need a voucher to proceed
|
@ -1 +1 @@
|
||||
Unahitaji sarafu kutuma
|
||||
Unahitaji sarafu kuendelea
|
@ -1,3 +1,4 @@
|
||||
CATCH no_voucher flag_no_active_voucher 1
|
||||
LOAD get_vouchers 0
|
||||
MAP get_vouchers
|
||||
MOUT back 0
|
||||
|
Loading…
Reference in New Issue
Block a user