fix logger

This commit is contained in:
2025-12-15 22:39:17 +01:00
parent 7a11daa878
commit 3b566c973d
110 changed files with 1413 additions and 903 deletions

View File

@@ -1,11 +1,11 @@
import { IProtestRepository } from '@gridpilot/racing/domain/repositories/IProtestRepository';
import { Protest, ProtestStatus } from '@gridpilot/racing/domain/entities/Protest';
import { ILogger } from '@gridpilot/shared/logging/ILogger';
import { Logger } from '@gridpilot/shared/logging/Logger';
export class InMemoryProtestRepository implements IProtestRepository {
private protests: Map<string, Protest> = new Map();
constructor(private readonly logger: ILogger, initialProtests: Protest[] = []) {
constructor(private readonly logger: Logger, initialProtests: Protest[] = []) {
this.logger.info('InMemoryProtestRepository initialized.');
for (const protest of initialProtests) {
this.protests.set(protest.id, protest);