refactor(server): app module (#13193)

This commit is contained in:
Jason Rasmussen 2024-10-04 16:57:34 -04:00 committed by GitHub
parent 7ee0221c8e
commit 5d0a4bb1a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 126 additions and 134 deletions

View file

@ -1,5 +1,6 @@
import { Injectable } from '@nestjs/common';
import { OnEvent } from 'src/decorators';
import { ImmichWorker } from 'src/enum';
import { ArgOf } from 'src/interfaces/event.interface';
import { IDeleteFilesJob, JobName } from 'src/interfaces/job.interface';
import { AssetService } from 'src/services/asset.service';
@ -45,7 +46,7 @@ export class MicroservicesService {
@OnEvent({ name: 'app.bootstrap' })
async onBootstrap(app: ArgOf<'app.bootstrap'>) {
if (app !== 'microservices') {
if (app !== ImmichWorker.MICROSERVICES) {
return;
}