fix: cycle dependecy

This commit is contained in:
Ahmed Bouhuolia
2025-06-27 02:18:01 +02:00
parent 0c0e1dc22e
commit 0ca98c7ae4
3 changed files with 13 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { Module } from '@nestjs/common';
import { forwardRef, Module } from '@nestjs/common';
import { CreateInvoiceCheckoutSession } from './CreateInvoiceCheckoutSession';
import { GetPaymentLinkInvoicePdf } from './GetPaymentLinkInvoicePdf';
import { PaymentLinksApplication } from './PaymentLinksApplication';
@@ -13,7 +13,10 @@ import { TenancyContext } from '../Tenancy/TenancyContext.service';
const models = [InjectSystemModel(PaymentLink)];
@Module({
imports: [StripePaymentModule, SaleInvoicesModule],
imports: [
forwardRef(() => StripePaymentModule),
forwardRef(() => SaleInvoicesModule),
],
providers: [
...models,
TenancyContext,