mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 22:11:37 +01:00
chore: prettier
This commit is contained in:
parent
8441ff9795
commit
ba484e55e7
12 changed files with 13 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue