mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
fix: medium tests dependencies (#30612)
This commit is contained in:
parent
a9a99cffbf
commit
5ad1e4e0f7
4 changed files with 45 additions and 35 deletions
|
|
@ -117,7 +117,7 @@ export const BASE_SERVICE_DEPENDENCIES = [
|
|||
ViewRepository,
|
||||
WebsocketRepository,
|
||||
WorkflowRepository,
|
||||
];
|
||||
] as const;
|
||||
|
||||
@Injectable()
|
||||
export class BaseService {
|
||||
|
|
@ -191,7 +191,7 @@ export class BaseService {
|
|||
);
|
||||
}
|
||||
|
||||
static create<T extends BaseService>(Service: ClassConstructor<T>, ctx: BaseService) {
|
||||
static create<T extends ClassConstructor<typeof BaseService>>(Service: T, ctx: BaseService) {
|
||||
const service = new Service(
|
||||
LoggingRepository.create(),
|
||||
ctx.accessRepository,
|
||||
|
|
@ -242,6 +242,7 @@ export class BaseService {
|
|||
ctx.trashRepository,
|
||||
ctx.userRepository,
|
||||
ctx.versionRepository,
|
||||
ctx.videoStreamRepository,
|
||||
ctx.viewRepository,
|
||||
ctx.websocketRepository,
|
||||
ctx.workflowRepository,
|
||||
|
|
@ -249,7 +250,7 @@ export class BaseService {
|
|||
|
||||
service.logger.setContext(BaseService.name);
|
||||
|
||||
return service as T;
|
||||
return service as InstanceType<T>;
|
||||
}
|
||||
|
||||
get worker() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue