Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({decodeExecutionRequest, recover}, cbk) =>
{
const executionRequest = decodeExecutionRequest || {};
const id = executionRequest.id || recover.execution_id;
return getPayment({id, lnd: args.lnd}, cbk);
}],
getPayment: ['validate', ({}, cbk) => {
if (query.length !== standardIdHexLength) {
return cbk(null, {});
}
return getPayment({lnd, id: query}, cbk);
}],