This commit is contained in:
Overtorment 2020-05-05 16:05:14 +01:00
parent 30422d9ac7
commit b4a0a7d3d8

View File

@ -274,9 +274,9 @@ router.get('/checkpayment/:payment_hash', async function(req, res) {
});
router.get('/balance', postLimiter, async function(req, res) {
let u = new User(redis, bitcoinclient, lightning);
try {
logger.log('/balance', [req.id]);
let u = new User(redis, bitcoinclient, lightning);
if (!(await u.loadByAuthorization(req.headers.authorization))) {
return errorBadAuth(res);
}