mirror of
https://github.com/immich-app/immich.git
synced 2026-05-24 08:32:28 -04:00
refactor!: migrate class-validator to zod (#26597)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { BadRequestException, Injectable } from '@nestjs/common';
|
||||
import { ClassConstructor } from 'class-transformer';
|
||||
import { SystemConfig } from 'src/config';
|
||||
import { OnEvent } from 'src/decorators';
|
||||
import { AuthDto } from 'src/dtos/auth.dto';
|
||||
@@ -39,7 +38,7 @@ const asNightlyTasksCron = (config: SystemConfig) => {
|
||||
|
||||
@Injectable()
|
||||
export class QueueService extends BaseService {
|
||||
private services: ClassConstructor<unknown>[] = [];
|
||||
private services: (new (...args: any[]) => unknown)[] = [];
|
||||
private nightlyJobsLock = false;
|
||||
|
||||
@OnEvent({ name: 'ConfigInit' })
|
||||
@@ -96,7 +95,7 @@ export class QueueService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
setServices(services: ClassConstructor<unknown>[]) {
|
||||
setServices(services: (new (...args: any[]) => unknown)[]) {
|
||||
this.services = services;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user