Fix removeBillingFKWithCore migration location (#9006)

removeBillingFKWithCore migration is in the wrong folder and is not
executed as intended.
Moving to billing folder to fix that and to be only run in billing mode
This commit is contained in:
Weiko
2024-12-10 16:33:52 +01:00
committed by GitHub
parent 013eda4a32
commit 96d56f8883
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,8 @@ import { Test, TestingModule } from '@nestjs/testing';
import { getRepositoryToken } from '@nestjs/typeorm';
import { BillingSubscriptionService } from 'src/engine/core-modules/billing/services/billing-subscription.service';
import { BillingService } from 'src/engine/core-modules/billing/services/billing.service';
import { DomainManagerService } from 'src/engine/core-modules/domain-manager/service/domain-manager.service';
import { EmailService } from 'src/engine/core-modules/email/email.service';
import { EnvironmentService } from 'src/engine/core-modules/environment/environment.service';
import { FeatureFlagService } from 'src/engine/core-modules/feature-flag/services/feature-flag.service';
@ -13,7 +15,6 @@ import { User } from 'src/engine/core-modules/user/user.entity';
import { WorkspaceInvitationService } from 'src/engine/core-modules/workspace-invitation/services/workspace-invitation.service';
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
import { WorkspaceManagerService } from 'src/engine/workspace-manager/workspace-manager.service';
import { DomainManagerService } from 'src/engine/core-modules/domain-manager/service/domain-manager.service';
import { WorkspaceService } from './workspace.service';
@ -56,6 +57,10 @@ describe('WorkspaceService', () => {
provide: BillingSubscriptionService,
useValue: {},
},
{
provide: BillingService,
useValue: {},
},
{
provide: EnvironmentService,
useValue: {},