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] }