## Context Fix add-subdomain-to-workspace command not included in global module also fixing the command regex logic that was not generating subdomain properly
27 lines
1.4 KiB
TypeScript
27 lines
1.4 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { GenerateDefaultSubdomainCommand } from 'src/database/commands/upgrade-version/0-34/0-34-generate-subdomain.command';
|
|
import { UpgradeTo0_34Command } from 'src/database/commands/upgrade-version/0-34/0-34-upgrade-version.command';
|
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
|
import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
|
|
import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity';
|
|
import { SearchModule } from 'src/engine/metadata-modules/search/search.module';
|
|
import { WorkspaceMigrationRunnerModule } from 'src/engine/workspace-manager/workspace-migration-runner/workspace-migration-runner.module';
|
|
import { WorkspaceSyncMetadataCommandsModule } from 'src/engine/workspace-manager/workspace-sync-metadata/commands/workspace-sync-metadata-commands.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([Workspace], 'core'),
|
|
TypeOrmModule.forFeature(
|
|
[ObjectMetadataEntity, FieldMetadataEntity],
|
|
'metadata',
|
|
),
|
|
WorkspaceSyncMetadataCommandsModule,
|
|
SearchModule,
|
|
WorkspaceMigrationRunnerModule,
|
|
],
|
|
providers: [UpgradeTo0_34Command, GenerateDefaultSubdomainCommand],
|
|
})
|
|
export class UpgradeTo0_34CommandModule {}
|