Removed duplicated balance api
This commit is contained in:
parent
7a94225d87
commit
a4cd81a106
@ -270,20 +270,6 @@ router.get('/checkpayment/:payment_hash', async function(req, res) {
|
|||||||
res.send({paid: paid});
|
res.send({paid: paid});
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/balance', postLimiter, async function(req, res) {
|
|
||||||
logger.log('/balance', [req.id]);
|
|
||||||
try {
|
|
||||||
let u = new User(redis, bitcoinclient, lightning);
|
|
||||||
await u.loadByAuthorization(req.headers.authorization);
|
|
||||||
|
|
||||||
if (!u.getUserId()) {
|
|
||||||
return errorBadAuth(res);
|
|
||||||
}
|
|
||||||
|
|
||||||
let paid = !!(await u.getPaymentHashPaid(req.params.payment_hash));
|
|
||||||
res.send({ paid: paid });
|
|
||||||
});
|
|
||||||
|
|
||||||
router.get('/balance', postLimiter, async function(req, res) {
|
router.get('/balance', postLimiter, async function(req, res) {
|
||||||
try {
|
try {
|
||||||
logger.log('/balance', [req.id]);
|
logger.log('/balance', [req.id]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user