chore: remove unused logger (#17593)

This commit is contained in:
Jason Rasmussen 2025-04-14 15:01:49 -04:00 committed by GitHub
parent e3f3baadb0
commit b2753103c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 7 deletions

View File

@ -1,13 +1,8 @@
import { Injectable } from '@nestjs/common';
import { ChildProcessWithoutNullStreams, spawn, SpawnOptionsWithoutStdio } from 'node:child_process';
import { LoggingRepository } from 'src/repositories/logging.repository';
@Injectable()
export class ProcessRepository {
constructor(private logger: LoggingRepository) {
this.logger.setContext(ProcessRepository.name);
}
spawn(command: string, args: readonly string[], options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams {
return spawn(command, args, options);
}

View File

@ -315,7 +315,7 @@ export class TestContext {
this.oauth = new OAuthRepository(logger);
this.partner = new PartnerRepository(this.db);
this.person = new PersonRepository(this.db);
this.process = new ProcessRepository(logger);
this.process = new ProcessRepository();
this.search = new SearchRepository(logger, this.db);
this.serverInfo = new ServerInfoRepository(config, logger);
this.session = new SessionRepository(this.db);

View File

@ -199,7 +199,7 @@ export const newTestService = <T extends BaseService>(
oauth: automock(OAuthRepository, { args: [loggerMock] }),
partner: automock(PartnerRepository, { strict: false }),
person: newPersonRepositoryMock(),
process: automock(ProcessRepository, { args: [loggerMock] }),
process: automock(ProcessRepository),
search: automock(SearchRepository, { args: [loggerMock], strict: false }),
// eslint-disable-next-line no-sparse-arrays
serverInfo: automock(ServerInfoRepository, { args: [, loggerMock], strict: false }),