mirror of
https://github.com/docmost/docmost.git
synced 2026-08-19 21:01:37 +10:00
refactor(import): move file task processor into app-only module
This commit is contained in:
@@ -17,6 +17,7 @@ import { EventEmitterModule } from '@nestjs/event-emitter';
|
||||
import { HealthModule } from './integrations/health/health.module';
|
||||
import { ExportModule } from './integrations/export/export.module';
|
||||
import { ImportModule } from './integrations/import/import.module';
|
||||
import { ImportProcessorModule } from './integrations/import/import-processor.module';
|
||||
import { SecurityModule } from './integrations/security/security.module';
|
||||
import { TelemetryModule } from './integrations/telemetry/telemetry.module';
|
||||
import { RedisModule } from '@nestjs-labs/nestjs-ioredis';
|
||||
@@ -76,6 +77,7 @@ try {
|
||||
StaticModule,
|
||||
HealthModule,
|
||||
ImportModule,
|
||||
ImportProcessorModule,
|
||||
ExportModule,
|
||||
StorageModule.forRootAsync({
|
||||
imports: [EnvironmentModule],
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ImportModule } from './import.module';
|
||||
import { FileTaskProcessor } from './processors/file-task.processor';
|
||||
|
||||
@Module({
|
||||
imports: [ImportModule],
|
||||
providers: [FileTaskProcessor],
|
||||
})
|
||||
export class ImportProcessorModule {}
|
||||
@@ -3,19 +3,13 @@ import { ImportService } from './services/import.service';
|
||||
import { ImportController } from './import.controller';
|
||||
import { StorageModule } from '../storage/storage.module';
|
||||
import { FileImportTaskService } from './services/file-import-task.service';
|
||||
import { FileTaskProcessor } from './processors/file-task.processor';
|
||||
import { ImportAttachmentService } from './services/import-attachment.service';
|
||||
import { FileTaskController } from './file-task.controller';
|
||||
import { PageModule } from '../../core/page/page.module';
|
||||
|
||||
@Module({
|
||||
providers: [
|
||||
ImportService,
|
||||
FileImportTaskService,
|
||||
FileTaskProcessor,
|
||||
ImportAttachmentService,
|
||||
],
|
||||
exports: [ImportService, ImportAttachmentService],
|
||||
providers: [ImportService, FileImportTaskService, ImportAttachmentService],
|
||||
exports: [ImportService, ImportAttachmentService, FileImportTaskService],
|
||||
controllers: [ImportController, FileTaskController],
|
||||
imports: [StorageModule, PageModule],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user