website refactor
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
* In-Memory Implementation: InMemoryWalletRepository
|
||||
*/
|
||||
|
||||
import type { Logger } from '@core/shared/application/Logger';
|
||||
import type { IWalletRepository, ITransactionRepository } from '@core/payments/domain/repositories/IWalletRepository';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { WalletRepository, ITransactionRepository } from '@core/payments/domain/repositories/WalletRepository';
|
||||
import type { Wallet, Transaction } from '@core/payments/domain/entities/Wallet';
|
||||
|
||||
const wallets: Map<string, Wallet> = new Map();
|
||||
const transactions: Map<string, Transaction> = new Map();
|
||||
|
||||
export class InMemoryWalletRepository implements IWalletRepository {
|
||||
export class InMemoryWalletRepository implements WalletRepository {
|
||||
constructor(private readonly logger: Logger) {}
|
||||
|
||||
async findById(id: string): Promise<Wallet | null> {
|
||||
@@ -35,7 +35,7 @@ export class InMemoryWalletRepository implements IWalletRepository {
|
||||
}
|
||||
}
|
||||
|
||||
export class InMemoryTransactionRepository implements ITransactionRepository {
|
||||
export class InMemoryTransactionRepository implements TransactionRepository {
|
||||
constructor(private readonly logger: Logger) {}
|
||||
|
||||
async findById(id: string): Promise<Transaction | null> {
|
||||
|
||||
Reference in New Issue
Block a user