mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Update project code according to dependencies update
This commit is contained in:
parent
2f6cdb8fe0
commit
4e08fd7cba
387 changed files with 1180 additions and 703 deletions
|
|
@ -9,10 +9,10 @@ const common = Common;
|
|||
function getFilesList(channelBackupPath, callback) {
|
||||
const files_list = [];
|
||||
let all_restore_exists = false;
|
||||
let response = { all_restore_exists: false, files: [] } || { message: '', error: {}, statusCode: 500 };
|
||||
let response = { all_restore_exists: false, files: [] };
|
||||
fs.readdir(channelBackupPath + sep + 'restore', (err, files) => {
|
||||
if (err && err.code !== 'ENOENT' && err.errno !== -4058) {
|
||||
response = { message: 'Channels Restore List Failed!', error: err, statusCode: 500 };
|
||||
response = Object.assign({ message: 'Channels Restore List Failed!', error: err, statusCode: 500 });
|
||||
}
|
||||
if (files && files.length > 0) {
|
||||
files.forEach((file) => {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ const { Router } = exprs;
|
|||
import { isAuthenticated } from '../../utils/authCheck.js';
|
||||
import { genSeed, updateSelNodeOptions, getUTXOs, operateWallet, bumpFee, labelTransaction, leaseUTXO, releaseUTXO } from '../../controllers/lnd/wallet.js';
|
||||
const router = Router();
|
||||
router.get('/genseed/:passphrase?', isAuthenticated, genSeed);
|
||||
router.get('/genseed', isAuthenticated, genSeed);
|
||||
router.get('/genseed/:passphrase', isAuthenticated, genSeed);
|
||||
router.get('/updateSelNodeOptions', isAuthenticated, updateSelNodeOptions);
|
||||
router.get('/getUTXOs', isAuthenticated, getUTXOs);
|
||||
router.post('/wallet/:operation', isAuthenticated, operateWallet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue