REF
This commit is contained in:
		
							parent
							
								
									4f345b20a8
								
							
						
					
					
						commit
						6a57559b16
					
				@ -116,8 +116,6 @@ router.post('/payinvoice', async function(req, res) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  let userBalance = await u.getBalance();
 | 
					  let userBalance = await u.getBalance();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  try {
 | 
					 | 
				
			||||||
    // TODO: refactor
 | 
					 | 
				
			||||||
  lightning.decodePayReq({ pay_req: req.body.invoice }, async function(err, info) {
 | 
					  lightning.decodePayReq({ pay_req: req.body.invoice }, async function(err, info) {
 | 
				
			||||||
    if (err) return errorNotAValidInvoice(res);
 | 
					    if (err) return errorNotAValidInvoice(res);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -188,9 +186,6 @@ router.post('/payinvoice', async function(req, res) {
 | 
				
			|||||||
      return errorNotEnougBalance(res);
 | 
					      return errorNotEnougBalance(res);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
  } catch (Err) {
 | 
					 | 
				
			||||||
    return errorLnd(res);
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
router.get('/getbtc', async function(req, res) {
 | 
					router.get('/getbtc', async function(req, res) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user