This commit is contained in:
Overtorment 2019-04-14 20:06:50 +01:00
parent 2c25a2090e
commit cf5441c08a

View File

@ -98,7 +98,7 @@ router.post('/addinvoice', postLimiter, async function(req, res) {
}
logger.log('/addinvoice', [req.id, 'userid: ' + u.getUserId()]);
if (!req.body.amt || req.body.amt < 1) return errorBadArguments(res);
if (!req.body.amt || /*stupid NaN*/ !(req.body.amt > 0)) return errorBadArguments(res);
lightning.addInvoice({ memo: req.body.memo, value: req.body.amt }, async function(err, info) {
if (err) return errorLnd(res);