From 31a9c0a9dc09bb6227853479a4befcfcef38f8d0 Mon Sep 17 00:00:00 2001 From: padreug Date: Sun, 7 Sep 2025 01:14:18 +0200 Subject: [PATCH] Clean up legacy singleton references after InvoiceService migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update commented TODO in PaymentMonitorService to use proper DI pattern - Remove outdated reference to legacy invoiceService singleton - Prepare PaymentMonitorService for future DI migration with proper pattern This cleanup eliminates the last remaining reference to the legacy InvoiceService singleton pattern, ensuring code consistency. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/modules/market/services/paymentMonitor.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/market/services/paymentMonitor.ts b/src/modules/market/services/paymentMonitor.ts index 2c2ec25..4880f55 100644 --- a/src/modules/market/services/paymentMonitor.ts +++ b/src/modules/market/services/paymentMonitor.ts @@ -168,8 +168,9 @@ class PaymentMonitorService { payment_hash: paymentHash } - // Uncomment when wallet context is available: - // const status = await invoiceService.checkPaymentStatus(paymentHash, walletId, adminKey) + // TODO: Implement when wallet context is available and PaymentMonitorService is migrated to DI: + // const invoiceService = injectService(SERVICE_TOKENS.INVOICE_SERVICE) as InvoiceService + // const status = await invoiceService.checkPaymentStatus(paymentHash, adminKey) // return status } catch (error) { console.error('Failed to get payment status:', error)