From fb8f25c3bbcf22c98af81e58daea086a152c4969 Mon Sep 17 00:00:00 2001 From: Adam Borbas Date: Wed, 17 Sep 2025 12:52:51 +0200 Subject: [PATCH] Typo --- .../Endpoints/brokerages/BrokerageAccountController.swift | 4 ++-- .../Grodt/Endpoints/brokerages/DTO/BrokerageAccountDTO.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Grodt/Endpoints/brokerages/BrokerageAccountController.swift b/Sources/Grodt/Endpoints/brokerages/BrokerageAccountController.swift index 0025c98..d114f07 100644 --- a/Sources/Grodt/Endpoints/brokerages/BrokerageAccountController.swift +++ b/Sources/Grodt/Endpoints/brokerages/BrokerageAccountController.swift @@ -80,7 +80,7 @@ struct BrokerageAccountController: RouteCollection { displayName: model.displayName, baseCurrency: currencyMapper.currency(from: model.baseCurrency), performance: PerformanceDTO.zero, - transacitons: []) + transactions: []) } private func detail(req: Request) async throws -> BrokerageAccountDTO { @@ -95,7 +95,7 @@ struct BrokerageAccountController: RouteCollection { displayName: model.displayName, baseCurrency: currencyMapper.currency(from: model.baseCurrency), performance: performance, - transacitons: transactions.asyncMap { try await transactionDTOMapper.transaction(from: $0) }) + transactions: transactions.asyncMap { try await transactionDTOMapper.transaction(from: $0) }) } private func update(req: Request) async throws -> HTTPStatus { diff --git a/Sources/Grodt/Endpoints/brokerages/DTO/BrokerageAccountDTO.swift b/Sources/Grodt/Endpoints/brokerages/DTO/BrokerageAccountDTO.swift index 66a2e8b..40e2655 100644 --- a/Sources/Grodt/Endpoints/brokerages/DTO/BrokerageAccountDTO.swift +++ b/Sources/Grodt/Endpoints/brokerages/DTO/BrokerageAccountDTO.swift @@ -7,5 +7,5 @@ struct BrokerageAccountDTO: Codable { let displayName: String let baseCurrency: CurrencyDTO let performance: PerformanceDTO - let transacitons: [TransactionDTO] + let transactions: [TransactionDTO] }