diff --git a/src/schemas/mutations/channels/closeChannel.ts b/src/schemas/mutations/channels/closeChannel.ts index b5241c36..1598bb4f 100644 --- a/src/schemas/mutations/channels/closeChannel.ts +++ b/src/schemas/mutations/channels/closeChannel.ts @@ -25,7 +25,7 @@ export const closeChannel = { auth: { type: new GraphQLNonNull(GraphQLString) }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'closeChannel') + await requestLimiter(context.ip, 'closeChannel'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/mutations/channels/openChannel.ts b/src/schemas/mutations/channels/openChannel.ts index b6a3f67a..b9b555e5 100644 --- a/src/schemas/mutations/channels/openChannel.ts +++ b/src/schemas/mutations/channels/openChannel.ts @@ -24,7 +24,7 @@ export const openChannel = { auth: { type: new GraphQLNonNull(GraphQLString) }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'openChannel') + await requestLimiter(context.ip, 'openChannel'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/mutations/invoices/createInvoice.ts b/src/schemas/mutations/invoices/createInvoice.ts index 329db516..326d1693 100644 --- a/src/schemas/mutations/invoices/createInvoice.ts +++ b/src/schemas/mutations/invoices/createInvoice.ts @@ -23,7 +23,7 @@ export const createInvoice = { auth: { type: new GraphQLNonNull(GraphQLString) }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'createInvoice') + await requestLimiter(context.ip, 'createInvoice'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/mutations/invoices/decode.ts b/src/schemas/mutations/invoices/decode.ts index 6c86f7b1..d9741323 100644 --- a/src/schemas/mutations/invoices/decode.ts +++ b/src/schemas/mutations/invoices/decode.ts @@ -32,7 +32,7 @@ export const decodeRequest = { auth: { type: new GraphQLNonNull(GraphQLString) }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'decode') + await requestLimiter(context.ip, 'decode'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/mutations/invoices/pay.ts b/src/schemas/mutations/invoices/pay.ts index 5163eb6e..134339b7 100644 --- a/src/schemas/mutations/invoices/pay.ts +++ b/src/schemas/mutations/invoices/pay.ts @@ -33,7 +33,7 @@ export const pay = { auth: { type: new GraphQLNonNull(GraphQLString) }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'pay') + await requestLimiter(context.ip, 'pay'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/mutations/onchain/getAddress.ts b/src/schemas/mutations/onchain/getAddress.ts index b9c40da0..36ce2bea 100644 --- a/src/schemas/mutations/onchain/getAddress.ts +++ b/src/schemas/mutations/onchain/getAddress.ts @@ -15,7 +15,7 @@ export const createAddress = { nested: { type: GraphQLBoolean }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'getAddress') + await requestLimiter(context.ip, 'getAddress'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/mutations/onchain/sendToAddress.ts b/src/schemas/mutations/onchain/sendToAddress.ts index 9a1c2683..ad760c80 100644 --- a/src/schemas/mutations/onchain/sendToAddress.ts +++ b/src/schemas/mutations/onchain/sendToAddress.ts @@ -29,8 +29,8 @@ export const sendToAddress = { sendAll: { type: GraphQLBoolean }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'sendToAddress') - + await requestLimiter(context.ip, 'sendToAddress'); + const lnd = getAuthLnd(params.auth); const props = params.fee diff --git a/src/schemas/query/channels/closedChannels.ts b/src/schemas/query/channels/closedChannels.ts index e9e13583..89aa2abb 100644 --- a/src/schemas/query/channels/closedChannels.ts +++ b/src/schemas/query/channels/closedChannels.ts @@ -60,7 +60,7 @@ export const getClosedChannels = { auth: { type: new GraphQLNonNull(GraphQLString) }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'closedChannels') + await requestLimiter(context.ip, 'closedChannels'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/query/channels/pendingChannels.ts b/src/schemas/query/channels/pendingChannels.ts index 34f94772..14ef93a4 100644 --- a/src/schemas/query/channels/pendingChannels.ts +++ b/src/schemas/query/channels/pendingChannels.ts @@ -33,7 +33,7 @@ export const getPendingChannels = { type: new GraphQLList(PendingChannelType), args: { auth: { type: new GraphQLNonNull(GraphQLString) } }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'pendingChannels') + await requestLimiter(context.ip, 'pendingChannels'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/query/data/bitcoinFee.ts b/src/schemas/query/data/bitcoinFee.ts index b495b853..164fcfe0 100644 --- a/src/schemas/query/data/bitcoinFee.ts +++ b/src/schemas/query/data/bitcoinFee.ts @@ -14,7 +14,7 @@ export const getBitcoinFees = { }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'bitcoinFee') + await requestLimiter(context.ip, 'bitcoinFee'); try { const response = await fetch(url); diff --git a/src/schemas/query/general/networkInfo.ts b/src/schemas/query/general/networkInfo.ts index 092028d8..e1b2dcb1 100644 --- a/src/schemas/query/general/networkInfo.ts +++ b/src/schemas/query/general/networkInfo.ts @@ -20,7 +20,7 @@ export const getNetworkInfo = { type: NetworkInfoType, args: { auth: { type: new GraphQLNonNull(GraphQLString) } }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'networkInfo') + await requestLimiter(context.ip, 'networkInfo'); const lnd = getAuthLnd(params.auth); diff --git a/src/schemas/query/report/ForwardChannels.ts b/src/schemas/query/report/ForwardChannels.ts index e53a496d..0e9f53cc 100644 --- a/src/schemas/query/report/ForwardChannels.ts +++ b/src/schemas/query/report/ForwardChannels.ts @@ -17,7 +17,7 @@ export const getForwardChannelsReport = { order: { type: GraphQLString }, }, resolve: async (root: any, params: any, context: any) => { - await requestLimiter(context.ip, 'forwardChannels') + await requestLimiter(context.ip, 'forwardChannels'); const lnd = getAuthLnd(params.auth);