Skip to content

Commit

Permalink
feat(2981): fix quote.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Nov 22, 2024
1 parent cbc2ee3 commit b8b94c7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/backend/src/open_payments/payment/outgoing/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,18 @@ async function createOutgoingPayment(
description: 'Time to insert payment in outgoing payment'
}
)
const payment = await OutgoingPayment.query(trx).insertAndFetch({
id: quoteId,
walletAddressId: walletAddressId,
client: options.client,
metadata: options.metadata,
state: OutgoingPaymentState.Funding,
grantId
})
const payment = await OutgoingPayment.query(trx)
.insertAndFetch({
id: quoteId,
walletAddressId: walletAddressId,
client: options.client,
metadata: options.metadata,
state: OutgoingPaymentState.Funding,
grantId
})
.withGraphFetched('quote')
await deps.assetService.setOn(payment.quote)
await deps.walletAddressService.setOn(payment.quote)
await deps.walletAddressService.setOn(payment)

stopTimerInsertPayment()
Expand Down

0 comments on commit b8b94c7

Please sign in to comment.