fix logger
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
|
||||
import type { Transaction, TransactionType } from '../../domain/entities/Transaction';
|
||||
import type { ITransactionRepository } from '../../domain/repositories/ITransactionRepository';
|
||||
import type { ILogger } from '@gridpilot/shared/logging/ILogger';
|
||||
import type { Logger } from '@gridpilot/shared/logging/Logger';
|
||||
|
||||
export class InMemoryTransactionRepository implements ITransactionRepository {
|
||||
private transactions: Map<string, Transaction> = new Map();
|
||||
private readonly logger: ILogger;
|
||||
private readonly logger: Logger;
|
||||
|
||||
constructor(logger: ILogger, seedData?: Transaction[]) {
|
||||
constructor(logger: Logger, seedData?: Transaction[]) {
|
||||
this.logger = logger;
|
||||
this.logger.info('InMemoryTransactionRepository initialized.');
|
||||
if (seedData) {
|
||||
|
||||
Reference in New Issue
Block a user