diff --git a/.gitignore b/.gitignore index 74b75863..08e542d2 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,8 @@ yarn-error.log* # vercel .vercel + +# Elastic Beanstalk Files +.elasticbeanstalk/* +!.elasticbeanstalk/*.cfg.yml +!.elasticbeanstalk/*.global.yml diff --git a/api/resolvers/wallet.js b/api/resolvers/wallet.js index 36238524..3589a572 100644 --- a/api/resolvers/wallet.js +++ b/api/resolvers/wallet.js @@ -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 } },