Skip to content

Commit

Permalink
chore(backend): format
Browse files Browse the repository at this point in the history
  • Loading branch information
furkan-bilgin committed Sep 2, 2024
1 parent 9396d96 commit 8dc334b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/backend/src/graphql/resolvers/peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion packages/backend/src/payment-method/ilp/peer/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ async function getPeer(
deps: ServiceDependencies,
id: string
): Promise<Peer | undefined> {
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(
Expand Down

0 comments on commit 8dc334b

Please sign in to comment.