website refactor
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* Processes a wallet transaction (deposit or withdrawal).
|
||||
*/
|
||||
|
||||
import type { WalletRepository, ITransactionRepository } from '../../domain/repositories/WalletRepository';
|
||||
import type { WalletRepository, TransactionRepository } from '../../domain/repositories/WalletRepository';
|
||||
import type { Wallet, Transaction } from '../../domain/entities/Wallet';
|
||||
import { TransactionType, ReferenceType } from '../../domain/entities/Wallet';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
@@ -31,8 +31,8 @@ export class ProcessWalletTransactionUseCase
|
||||
implements UseCase<ProcessWalletTransactionInput, ProcessWalletTransactionResult, ProcessWalletTransactionErrorCode>
|
||||
{
|
||||
constructor(
|
||||
private readonly walletRepository: IWalletRepository,
|
||||
private readonly transactionRepository: ITransactionRepository,
|
||||
private readonly walletRepository: WalletRepository,
|
||||
private readonly transactionRepository: TransactionRepository,
|
||||
) {}
|
||||
|
||||
async execute(input: ProcessWalletTransactionInput): Promise<Result<ProcessWalletTransactionResult, ApplicationErrorCode<ProcessWalletTransactionErrorCode>>> {
|
||||
|
||||
Reference in New Issue
Block a user