mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix: cycle dependecy
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Module } from '@nestjs/common';
|
import { forwardRef, Module } from '@nestjs/common';
|
||||||
import { CreateInvoiceCheckoutSession } from './CreateInvoiceCheckoutSession';
|
import { CreateInvoiceCheckoutSession } from './CreateInvoiceCheckoutSession';
|
||||||
import { GetPaymentLinkInvoicePdf } from './GetPaymentLinkInvoicePdf';
|
import { GetPaymentLinkInvoicePdf } from './GetPaymentLinkInvoicePdf';
|
||||||
import { PaymentLinksApplication } from './PaymentLinksApplication';
|
import { PaymentLinksApplication } from './PaymentLinksApplication';
|
||||||
@@ -13,7 +13,10 @@ import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
|||||||
const models = [InjectSystemModel(PaymentLink)];
|
const models = [InjectSystemModel(PaymentLink)];
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [StripePaymentModule, SaleInvoicesModule],
|
imports: [
|
||||||
|
forwardRef(() => StripePaymentModule),
|
||||||
|
forwardRef(() => SaleInvoicesModule),
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
...models,
|
...models,
|
||||||
TenancyContext,
|
TenancyContext,
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ import { PaymentsReceivedModule } from '../PaymentReceived/PaymentsReceived.modu
|
|||||||
import { SaleInvoicesCost } from './SalesInvoicesCost';
|
import { SaleInvoicesCost } from './SalesInvoicesCost';
|
||||||
import { SaleInvoicesExportable } from './commands/SaleInvoicesExportable';
|
import { SaleInvoicesExportable } from './commands/SaleInvoicesExportable';
|
||||||
import { SaleInvoicesImportable } from './commands/SaleInvoicesImportable';
|
import { SaleInvoicesImportable } from './commands/SaleInvoicesImportable';
|
||||||
|
import { PaymentLinksModule } from '../PaymentLinks/PaymentLinks.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -74,6 +75,7 @@ import { SaleInvoicesImportable } from './commands/SaleInvoicesImportable';
|
|||||||
MailModule,
|
MailModule,
|
||||||
MailNotificationModule,
|
MailNotificationModule,
|
||||||
forwardRef(() => InventoryCostModule),
|
forwardRef(() => InventoryCostModule),
|
||||||
|
forwardRef(() => PaymentLinksModule),
|
||||||
DynamicListModule,
|
DynamicListModule,
|
||||||
BullModule.registerQueue({ name: SendSaleInvoiceQueue }),
|
BullModule.registerQueue({ name: SendSaleInvoiceQueue }),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Module } from '@nestjs/common';
|
import { forwardRef, Module } from '@nestjs/common';
|
||||||
import { CreateStripeAccountLinkService } from './CreateStripeAccountLink';
|
import { CreateStripeAccountLinkService } from './CreateStripeAccountLink';
|
||||||
import { CreateStripeAccountService } from './CreateStripeAccountService';
|
import { CreateStripeAccountService } from './CreateStripeAccountService';
|
||||||
import { StripePaymentApplication } from './StripePaymentApplication';
|
import { StripePaymentApplication } from './StripePaymentApplication';
|
||||||
@@ -19,7 +19,11 @@ import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
|||||||
const models = [InjectSystemModel(PaymentIntegration)];
|
const models = [InjectSystemModel(PaymentIntegration)];
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [AccountsModule, SaleInvoicesModule, PaymentsReceivedModule],
|
imports: [
|
||||||
|
AccountsModule,
|
||||||
|
PaymentsReceivedModule,
|
||||||
|
forwardRef(() => SaleInvoicesModule),
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
...models,
|
...models,
|
||||||
StripePaymentService,
|
StripePaymentService,
|
||||||
|
|||||||
Reference in New Issue
Block a user