added eb config
This commit is contained in:
parent
f535dc134c
commit
fc47d1c0e0
5
.gitignore
vendored
5
.gitignore
vendored
@ -33,3 +33,8 @@ yarn-error.log*
|
|||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.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 { UserInputError, AuthenticationError } from 'apollo-server-micro'
|
||||||
import serialize from './serial'
|
import serialize from './serial'
|
||||||
|
|
||||||
@ -45,8 +45,7 @@ export default {
|
|||||||
return wdrwl
|
return wdrwl
|
||||||
},
|
},
|
||||||
connectAddress: async (parent, args, { lnd }) => {
|
connectAddress: async (parent, args, { lnd }) => {
|
||||||
const pubkey = (await lndService.getWalletInfo({ lnd })).public_key
|
return process.env.LND_CONNECT_ADDRESS
|
||||||
return `${pubkey}@${process.env.LND_SOCKET}`
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user