From 9b2024ef29a1bfee965011013461658497e1d913 Mon Sep 17 00:00:00 2001 From: saubyk Date: Tue, 11 Jun 2019 18:45:29 -0400 Subject: [PATCH] Post invoice with expiry --- controllers/invoices.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/invoices.js b/controllers/invoices.js index d69595c5..823cfb61 100644 --- a/controllers/invoices.js +++ b/controllers/invoices.js @@ -65,7 +65,8 @@ exports.addInvoice = (req, res, next) => { options.form = JSON.stringify({ memo: req.body.memo, value: req.body.amount, - private: req.body.private + private: req.body.private, + expiry: req.body.expiry ? req.body.expiry : 3600 }); request.post(options).then((body) => { logger.info('\r\nInvoice: 64: ' + JSON.stringify(Date.now()) + ': INFO: Add Invoice Responce: ' + JSON.stringify(body));