fix(billing): import PaymentGatewaysModule so BillingService can resolve the registry
الـAPI كان في حلقة سقوط: BillingService يحقن PaymentGatewayRegistry، لكنه يعيش في PaymentGatewaysModule الذي يستورده PaymentsModule دون إعادة تصدير. الاستيراد المباشر يجعل التبعية صريحة. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
5b101bca57
commit
ba7c99a05b
@@ -8,12 +8,16 @@ import { SuperAdminBillingController } from './superadmin-billing.controller';
|
|||||||
import { SuperAdminWebhookController } from './superadmin-webhook.controller';
|
import { SuperAdminWebhookController } from './superadmin-webhook.controller';
|
||||||
import { PaymentsModule } from '../payments/payments.module';
|
import { PaymentsModule } from '../payments/payments.module';
|
||||||
import { StorageModule } from '../../common/storage/storage.module';
|
import { StorageModule } from '../../common/storage/storage.module';
|
||||||
|
import { PaymentGatewaysModule } from '../../integrations/payments/payment-gateways.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
TypeOrmModule.forFeature([TenantSubscription, SuperAdminPayment]),
|
TypeOrmModule.forFeature([TenantSubscription, SuperAdminPayment]),
|
||||||
PaymentsModule,
|
PaymentsModule,
|
||||||
StorageModule,
|
StorageModule,
|
||||||
|
// BillingService يحقن PaymentGatewayRegistry مباشرة — و PaymentsModule
|
||||||
|
// يستورد البوابات دون إعادة تصديرها، فالاستيراد هنا صريح لا متطفّل.
|
||||||
|
PaymentGatewaysModule,
|
||||||
],
|
],
|
||||||
controllers: [TenantBillingController, SuperAdminBillingController, SuperAdminWebhookController],
|
controllers: [TenantBillingController, SuperAdminBillingController, SuperAdminWebhookController],
|
||||||
providers: [BillingService],
|
providers: [BillingService],
|
||||||
|
|||||||
Reference in New Issue
Block a user