Correctly register PaymentIntegration as tenant model

This commit is contained in:
Daniel Lo Nigro
2025-11-30 15:52:07 -08:00
parent b756f090ed
commit 0a1fffb3a4
2 changed files with 2 additions and 5 deletions

View File

@@ -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,

View File

@@ -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,