offers: enable label for invoicerequest

This commit is contained in:
Alex Myers
2023-03-08 18:26:24 -06:00
committed by Alex Myers
parent cfbfe5d7ee
commit 9e2287415f
2 changed files with 5 additions and 1 deletions

View File

@@ -20,6 +20,10 @@
"type": "string",
"description": ""
},
"label": {
"type": "string",
"description": ""
},
"absolute_expiry": {
"type": "u64",
"description": ""

View File

@@ -467,7 +467,7 @@ struct command_result *json_invoicerequest(struct command *cmd,
json_add_bool(req->js, "exposeid", true);
json_add_bool(req->js, "single_use", *single_use);
if (label)
json_add_string(req->js, "label", label);
json_add_string(req->js, "recurrence_label", label);
return send_outreq(cmd->plugin, req);
}