chore: prettier

This commit is contained in:
AP 2019-12-10 20:18:10 +01:00
parent 8441ff9795
commit ba484e55e7
12 changed files with 13 additions and 13 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);