1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-06 11:56:46 +01:00

fix(server): import scheduler module (#4766)

This commit is contained in:
Alex 2023-10-31 23:40:35 -05:00 committed by GitHub
parent ce5966c23d
commit e8712e6694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ import {
import { BullModule } from '@nestjs/bullmq'; import { BullModule } from '@nestjs/bullmq';
import { Global, Module, Provider } from '@nestjs/common'; import { Global, Module, Provider } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config'; import { ConfigModule } from '@nestjs/config';
import { ScheduleModule, SchedulerRegistry } from '@nestjs/schedule';
import { TypeOrmModule } from '@nestjs/typeorm'; import { TypeOrmModule } from '@nestjs/typeorm';
import { databaseConfig } from './database.config'; import { databaseConfig } from './database.config';
import { databaseEntities } from './entities'; import { databaseEntities } from './entities';
@ -87,12 +88,14 @@ const providers: Provider[] = [
{ provide: IMediaRepository, useClass: MediaRepository }, { provide: IMediaRepository, useClass: MediaRepository },
{ provide: IUserRepository, useClass: UserRepository }, { provide: IUserRepository, useClass: UserRepository },
{ provide: IUserTokenRepository, useClass: UserTokenRepository }, { provide: IUserTokenRepository, useClass: UserTokenRepository },
SchedulerRegistry,
]; ];
const imports = [ const imports = [
ConfigModule.forRoot(immichAppConfig), ConfigModule.forRoot(immichAppConfig),
TypeOrmModule.forRoot(databaseConfig), TypeOrmModule.forRoot(databaseConfig),
TypeOrmModule.forFeature(databaseEntities), TypeOrmModule.forFeature(databaseEntities),
ScheduleModule,
]; ];
const moduleExports = [...providers]; const moduleExports = [...providers];