From 55c1e28518c3f6f4b3c8ddfb044028066766dc75 Mon Sep 17 00:00:00 2001 From: vilm3r <100658064+vilm3r@users.noreply.github.com> Date: Sat, 26 Mar 2022 05:49:19 -0500 Subject: [PATCH] fix: change pay out channels to pass channel id instead of node key and out prop name (#428) Co-authored-by: vilm3r --- src/client/src/views/home/account/pay/Pay.tsx | 2 +- src/server/modules/api/invoices/invoices.resolver.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/src/views/home/account/pay/Pay.tsx b/src/client/src/views/home/account/pay/Pay.tsx index d040d570..719d7601 100644 --- a/src/client/src/views/home/account/pay/Pay.tsx +++ b/src/client/src/views/home/account/pay/Pay.tsx @@ -139,7 +139,7 @@ export const Pay: React.FC = ({ predefinedRequest, payCallback }) => { title={'Out Channels'} isMulti={true} maxWidth={'300px'} - callback={p => setPeers(p.map(peer => peer.partner_public_key))} + callback={p => setPeers(p.map(peer => peer.id))} /> [String] }) out: string[] + @Args('out', { nullable: true, type: () => [String] }) + outgoing_channels: string[] ) { const props = { max_fee, max_paths, request, - out, + outgoing_channels, }; this.logger.debug('Paying invoice with params', props);