added eb config
This commit is contained in:
parent
f535dc134c
commit
fc47d1c0e0
|
@ -33,3 +33,8 @@ yarn-error.log*
|
|||
|
||||
# vercel
|
||||
.vercel
|
||||
|
||||
# Elastic Beanstalk Files
|
||||
.elasticbeanstalk/*
|
||||
!.elasticbeanstalk/*.cfg.yml
|
||||
!.elasticbeanstalk/*.global.yml
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import lndService, { createInvoice, decodePaymentRequest, subscribeToPayViaRequest } from 'ln-service'
|
||||
import { createInvoice, decodePaymentRequest, subscribeToPayViaRequest } from 'ln-service'
|
||||
import { UserInputError, AuthenticationError } from 'apollo-server-micro'
|
||||
import serialize from './serial'
|
||||
|
||||
|
@ -45,8 +45,7 @@ export default {
|
|||
return wdrwl
|
||||
},
|
||||
connectAddress: async (parent, args, { lnd }) => {
|
||||
const pubkey = (await lndService.getWalletInfo({ lnd })).public_key
|
||||
return `${pubkey}@${process.env.LND_SOCKET}`
|
||||
return process.env.LND_CONNECT_ADDRESS
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue