From e8712e6694d4fd2276e22a8ca6a1279c6423d5ca Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 31 Oct 2023 23:40:35 -0500 Subject: [PATCH] fix(server): import scheduler module (#4766) --- server/src/infra/infra.module.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/infra/infra.module.ts b/server/src/infra/infra.module.ts index ffbedafff5..276058c0b3 100644 --- a/server/src/infra/infra.module.ts +++ b/server/src/infra/infra.module.ts @@ -29,6 +29,7 @@ import { import { BullModule } from '@nestjs/bullmq'; import { Global, Module, Provider } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; +import { ScheduleModule, SchedulerRegistry } from '@nestjs/schedule'; import { TypeOrmModule } from '@nestjs/typeorm'; import { databaseConfig } from './database.config'; import { databaseEntities } from './entities'; @@ -87,12 +88,14 @@ const providers: Provider[] = [ { provide: IMediaRepository, useClass: MediaRepository }, { provide: IUserRepository, useClass: UserRepository }, { provide: IUserTokenRepository, useClass: UserTokenRepository }, + SchedulerRegistry, ]; const imports = [ ConfigModule.forRoot(immichAppConfig), TypeOrmModule.forRoot(databaseConfig), TypeOrmModule.forFeature(databaseEntities), + ScheduleModule, ]; const moduleExports = [...providers];