diff --git a/packages/backend/src/open_payments/payment/outgoing/worker.ts b/packages/backend/src/open_payments/payment/outgoing/worker.ts index a2e688036f..05631aa7b7 100644 --- a/packages/backend/src/open_payments/payment/outgoing/worker.ts +++ b/packages/backend/src/open_payments/payment/outgoing/worker.ts @@ -75,7 +75,7 @@ async function getPendingPayment( [RETRY_BACKOFF_SECONDS, now] ) }) - .withGraphFetched('[walletAddress, quote.asset]') + .withGraphFetched('quote') stopTimer() return payments[0] } @@ -89,6 +89,16 @@ async function handlePaymentLifecycle( return } + const [paymentWalletAddress, quoteAsset] = await Promise.all([ + deps.walletAddressService.get(payment.walletAddressId), + deps.assetService.get(payment.quote.assetId) + ]) + + payment.walletAddress = paymentWalletAddress + if (quoteAsset) { + payment.quote.asset = quoteAsset + } + const stopTimer = deps.telemetry.startTimer('handle_sending_ms', { callName: 'OutoingPaymentWorker:handleSending' })