Skip to content

Commit

Permalink
fix(server): import scheduler module (#4766)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Nov 1, 2023
1 parent ce5966c commit e8712e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/infra/infra.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit e8712e6

Please sign in to comment.