Skip to content

Commit 04f3472

Browse files
committed
chore: format and merge fixes
1 parent 06e6da3 commit 04f3472

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

localenv/mock-account-servicing-entity/app/entry.server.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@ if (!global.__seeded) {
5353
)
5454
.then((seedResult: { tenantId: string; apiSecret: string } | undefined) => {
5555
global.__seeded = true
56+
setTimeout(() => {
57+
const url = new URL(`http://localhost:${process.env.FRONTEND_PORT}/`)
58+
const params = new URLSearchParams({
59+
tenantId: seedResult?.tenantId ?? tenantId,
60+
apiSecret: seedResult?.apiSecret ?? apiSecret
61+
})
62+
63+
url.search = params.toString()
64+
65+
console.log(
66+
`Local Dev Setup:\nUse this URL to access the frontend with ${process.env.IS_TENANT ? '' : 'operator '} tenant credentials:\n${url}\n`
67+
)
68+
}, 2000)
5669
})
5770
.catch((e) => {
5871
console.log(

packages/auth/src/access/service.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { AppServices } from '../app'
99
import { AccessService } from './service'
1010
import { Grant } from '../grant/model'
1111
import { IncomingPaymentRequest, OutgoingPaymentRequest } from './types'
12-
import { generateNonce, generateToken } from '../shared/utils'
12+
import { AccessError } from './errors'
13+
import { generateBaseGrant } from '../tests/grant'
1314
import { AccessType, AccessAction } from '@interledger/open-payments'
1415
import { Access } from './model'
1516
import { Tenant } from '../tenant/model'

packages/backend/src/payment-method/ilp/peer/service.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,6 @@ describe('Peer Service', (): void => {
348348
name,
349349
liquidityThreshold,
350350
tenantId: peer.tenantId
351-
liquidityThreshold,
352-
tenantId: peer.tenantId
353351
}
354352

355353
const peerOrError = await peerService.update(updateOptions)

packages/backend/src/payment-method/ilp/peer/service.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -379,18 +379,6 @@ async function getPeerByDestinationAddress(
379379
}
380380
}
381381

382-
function getByLongestPrefixMatch(
383-
peers: Peer[],
384-
destinationAddress: string
385-
): Peer | undefined {
386-
const map = new PrefixMap<Peer>()
387-
for (const peer of peers) {
388-
map.insert(peer.staticIlpAddress, peer)
389-
}
390-
391-
return map.resolve(destinationAddress)
392-
}
393-
394382
async function getPeerByIncomingToken(
395383
deps: ServiceDependencies,
396384
token: string

0 commit comments

Comments
 (0)