mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
Correctly register PaymentIntegration as tenant model
This commit is contained in:
@@ -3,12 +3,10 @@ import { CreateStripeAccountLinkService } from './CreateStripeAccountLink';
|
||||
import { CreateStripeAccountService } from './CreateStripeAccountService';
|
||||
import { StripePaymentApplication } from './StripePaymentApplication';
|
||||
import { ExchangeStripeOAuthTokenService } from './ExchangeStripeOauthToken';
|
||||
import { PaymentIntegration } from './models/PaymentIntegration.model';
|
||||
import { SeedStripeAccountsOnOAuthGrantedSubscriber } from './subscribers/SeedStripeAccounts';
|
||||
import { StripeWebhooksSubscriber } from './subscribers/StripeWebhooksSubscriber';
|
||||
import { StripeIntegrationController } from './StripePayment.controller';
|
||||
import { StripePaymentService } from './StripePaymentService';
|
||||
import { InjectSystemModel } from '../System/SystemModels/SystemModels.module';
|
||||
import { GetStripeAuthorizationLinkService } from './GetStripeAuthorizationLink';
|
||||
import { AccountsModule } from '../Accounts/Accounts.module';
|
||||
import { CreatePaymentReceiveStripePayment } from './CreatePaymentReceivedStripePayment';
|
||||
@@ -16,8 +14,6 @@ import { SaleInvoicesModule } from '../SaleInvoices/SaleInvoices.module';
|
||||
import { PaymentsReceivedModule } from '../PaymentReceived/PaymentsReceived.module';
|
||||
import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
||||
|
||||
const models = [InjectSystemModel(PaymentIntegration)];
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
AccountsModule,
|
||||
@@ -25,7 +21,6 @@ const models = [InjectSystemModel(PaymentIntegration)];
|
||||
forwardRef(() => SaleInvoicesModule),
|
||||
],
|
||||
providers: [
|
||||
...models,
|
||||
StripePaymentService,
|
||||
GetStripeAuthorizationLinkService,
|
||||
CreateStripeAccountLinkService,
|
||||
|
||||
@@ -26,6 +26,7 @@ import { BillLandedCostEntry } from '@/modules/BillLandedCosts/models/BillLanded
|
||||
import { BillLandedCost } from '@/modules/BillLandedCosts/models/BillLandedCost';
|
||||
import { VendorCreditAppliedBill } from '@/modules/VendorCreditsApplyBills/models/VendorCreditAppliedBill';
|
||||
import { SaleInvoice } from '@/modules/SaleInvoices/models/SaleInvoice';
|
||||
import { PaymentIntegration } from '@/modules/StripePayment/models/PaymentIntegration.model';
|
||||
import { PaymentReceivedEntry } from '@/modules/PaymentReceived/models/PaymentReceivedEntry';
|
||||
import { CreditNoteAppliedInvoice } from '@/modules/CreditNotesApplyInvoice/models/CreditNoteAppliedInvoice';
|
||||
import { CreditNote } from '@/modules/CreditNotes/models/CreditNote';
|
||||
@@ -75,6 +76,7 @@ const models = [
|
||||
VendorCredit,
|
||||
VendorCreditAppliedBill,
|
||||
RefundVendorCredit,
|
||||
PaymentIntegration,
|
||||
PaymentReceived,
|
||||
PaymentReceivedEntry,
|
||||
TenantUser,
|
||||
|
||||
Reference in New Issue
Block a user