From ba7c99a05b123ab257ed859b073bf3192aa7139b Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 18 Jul 2026 19:32:39 +0300 Subject: [PATCH] fix(billing): import PaymentGatewaysModule so BillingService can resolve the registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit الـAPI كان في حلقة سقوط: BillingService يحقن PaymentGatewayRegistry، لكنه يعيش في PaymentGatewaysModule الذي يستورده PaymentsModule دون إعادة تصدير. الاستيراد المباشر يجعل التبعية صريحة. Co-Authored-By: Claude Opus 4.8 --- backend/src/modules/billing/billing.module.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/modules/billing/billing.module.ts b/backend/src/modules/billing/billing.module.ts index d1d2c74..a81fa5e 100644 --- a/backend/src/modules/billing/billing.module.ts +++ b/backend/src/modules/billing/billing.module.ts @@ -8,12 +8,16 @@ import { SuperAdminBillingController } from './superadmin-billing.controller'; import { SuperAdminWebhookController } from './superadmin-webhook.controller'; import { PaymentsModule } from '../payments/payments.module'; import { StorageModule } from '../../common/storage/storage.module'; +import { PaymentGatewaysModule } from '../../integrations/payments/payment-gateways.module'; @Module({ imports: [ TypeOrmModule.forFeature([TenantSubscription, SuperAdminPayment]), PaymentsModule, StorageModule, + // BillingService يحقن PaymentGatewayRegistry مباشرة — و PaymentsModule + // يستورد البوابات دون إعادة تصديرها، فالاستيراد هنا صريح لا متطفّل. + PaymentGatewaysModule, ], controllers: [TenantBillingController, SuperAdminBillingController, SuperAdminWebhookController], providers: [BillingService],