mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat(nestjs): migrate to NestJS
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { CreateInvoiceCheckoutSession } from './CreateInvoiceCheckoutSession';
|
||||
import { GetPaymentLinkInvoicePdf } from './GetPaymentLinkInvoicePdf';
|
||||
import { PaymentLinksApplication } from './PaymentLinksApplication';
|
||||
import { PaymentLinksController } from './PaymentLinks.controller';
|
||||
import { InjectSystemModel } from '../System/SystemModels/SystemModels.module';
|
||||
import { PaymentLink } from './models/PaymentLink';
|
||||
import { StripePaymentModule } from '../StripePayment/StripePayment.module';
|
||||
import { SaleInvoicesModule } from '../SaleInvoices/SaleInvoices.module';
|
||||
import { GetInvoicePaymentLinkMetadata } from './GetInvoicePaymentLinkMetadata';
|
||||
import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
||||
|
||||
const models = [InjectSystemModel(PaymentLink)];
|
||||
|
||||
@Module({
|
||||
imports: [StripePaymentModule, SaleInvoicesModule],
|
||||
providers: [
|
||||
...models,
|
||||
TenancyContext,
|
||||
CreateInvoiceCheckoutSession,
|
||||
GetPaymentLinkInvoicePdf,
|
||||
PaymentLinksApplication,
|
||||
GetInvoicePaymentLinkMetadata,
|
||||
],
|
||||
controllers: [PaymentLinksController],
|
||||
exports: [...models, PaymentLinksApplication],
|
||||
})
|
||||
export class PaymentLinksModule {}
|
||||
Reference in New Issue
Block a user