Skip to content

Commit

Permalink
fix: return transaction-dto instead of transaction in api
Browse files Browse the repository at this point in the history
  • Loading branch information
amiralirahimii committed Aug 20, 2024
1 parent 0337ad4 commit f83656b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Web/Controllers/TransactionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ public async Task<IActionResult> GetAllTransactions()
public async Task<IActionResult> GetTransactionsByAccountId(long accountId)
{
var transactions = await _transactionService.GetTransactionsByAccountIdAsync(accountId);
return Ok(transactions);
return Ok(transactions.ToGotAllTransactionsDto());
}
}

0 comments on commit f83656b

Please sign in to comment.