Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getChannels: ['validate', ({}, cbk) => {
// Exit early when there is no need to add an outgoing channel id
if (!args.out_through) {
return cbk();
}
return getChannels({lnd: args.lnd}, cbk);
}],
getChannels: ['validate', ({}, cbk) => {
return getChannels({lnd: args.lnd}, cbk);
}],
getChannels: ['lnd', ({lnd}, cbk) => getChannels({lnd}, cbk)],
getChannels: ['validate', ({}, cbk) => {
return getChannels({lnd: args.lnd, is_active: true}, cbk);
}],
getChannels: ['validate', ({}, cbk) => getChannels({lnd}, cbk)],
getChannels: ['validate', ({}, cbk) => {
return getChannels({lnd: args.lnd}, cbk);
}],
getChannels: ['lnd', ({lnd}, cbk) => getChannels({lnd}, cbk)],
getChannels: ['getLnd', ({getLnd}, cbk) => {
return getChannels({lnd: getLnd.lnd}, cbk);
}],
getInitialLiquidity: ['lnd', ({lnd}, cbk) => getChannels({lnd}, cbk)],
getChannels: ['validate', ({}, cbk) => getChannels({lnd}, cbk)],