Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getForwards: ['start', ({start}, cbk) => {
return getForwards({
limit,
after: start.toISOString(),
before: new Date().toISOString(),
lnd: args.lnd,
},
cbk);
}],
getForwards: ['validate', ({}, cbk) => {
const after = new Date(now() - (days || numDays)*msPerDay).toISOString();
const before = new Date().toISOString();
return getForwards({after, before, lnd, limit}, cbk);
}],