mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
wip
This commit is contained in:
@@ -8,6 +8,8 @@ import { OpenTelemetryModule } from 'nestjs-otel';
|
||||
import { commands } from 'src/commands';
|
||||
import { IWorker } from 'src/constants';
|
||||
import { controllers } from 'src/controllers';
|
||||
import { MaintenanceController } from 'src/controllers/maintenance.controller';
|
||||
import { ServerController } from 'src/controllers/server.controller';
|
||||
import { ImmichWorker } from 'src/enum';
|
||||
import { AuthGuard } from 'src/middleware/auth.guard';
|
||||
import { ErrorInterceptor } from 'src/middleware/error.interceptor';
|
||||
@@ -95,6 +97,13 @@ export class ApiModule extends BaseModule {}
|
||||
})
|
||||
export class MicroservicesModule extends BaseModule {}
|
||||
|
||||
@Module({
|
||||
imports: [...imports],
|
||||
controllers: [MaintenanceController, ServerController],
|
||||
providers: [...common, { provide: IWorker, useValue: ImmichWorker.MAINTENANCE }, SchedulerRegistry],
|
||||
})
|
||||
export class MaintenanceModule extends BaseModule {}
|
||||
|
||||
@Module({
|
||||
imports: [...imports],
|
||||
providers: [...common, ...commands, SchedulerRegistry],
|
||||
|
||||
Reference in New Issue
Block a user