added eb config

This commit is contained in:
keyan 2021-06-03 18:08:00 -04:00
parent f535dc134c
commit fc47d1c0e0
2 changed files with 7 additions and 3 deletions

5
.gitignore vendored
View File

@ -33,3 +33,8 @@ yarn-error.log*
# vercel # vercel
.vercel .vercel
# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml

View File

@ -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}`
} }
}, },