From 8dc334b823c40cf962507e508fc211286d56926a Mon Sep 17 00:00:00 2001 From: Furkan Bilgin Date: Mon, 2 Sep 2024 20:16:28 +0300 Subject: [PATCH] chore(backend): format --- packages/backend/src/graphql/resolvers/peer.ts | 4 +++- packages/backend/src/payment-method/ilp/peer/service.ts | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/graphql/resolvers/peer.ts b/packages/backend/src/graphql/resolvers/peer.ts index 247dd21c01..d492026649 100644 --- a/packages/backend/src/graphql/resolvers/peer.ts +++ b/packages/backend/src/graphql/resolvers/peer.ts @@ -122,7 +122,9 @@ export const peerToGraphql = (peer: Peer): SchemaPeer => ({ id: peer.id, maxPacketAmount: peer.maxPacketAmount, http: peer.http, - incomingTokens: peer.incomingTokens?.map(incomingToken => incomingToken.token), + incomingTokens: peer.incomingTokens?.map( + (incomingToken) => incomingToken.token + ), asset: assetToGraphql(peer.asset), staticIlpAddress: peer.staticIlpAddress, name: peer.name, diff --git a/packages/backend/src/payment-method/ilp/peer/service.ts b/packages/backend/src/payment-method/ilp/peer/service.ts index c87e844557..04ecc26283 100644 --- a/packages/backend/src/payment-method/ilp/peer/service.ts +++ b/packages/backend/src/payment-method/ilp/peer/service.ts @@ -114,7 +114,10 @@ async function getPeer( deps: ServiceDependencies, id: string ): Promise { - return Peer.query(deps.knex).findById(id).withGraphFetched('asset').withGraphFetched('incomingTokens') + return Peer.query(deps.knex) + .findById(id) + .withGraphFetched('asset') + .withGraphFetched('incomingTokens') } async function createPeer(