From 97282adf12c6547faf4f6be24714107ccdac96d7 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 23 Sep 2024 21:46:43 +0200 Subject: [PATCH] Fixed that clientData and userSetDisplayName have been mixed up --- .../net/codinux/banking/persistence/SqliteBankingRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt b/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt index c6f1601..0e74660 100644 --- a/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt +++ b/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt @@ -95,7 +95,7 @@ open class SqliteBankingRepository : BankingRepository { val tanMedia = getAllTanMedia().groupBy { it.bankId }.mapValues { it.value.toMutableList() } val holdings = getAllHoldings().groupBy { it.accountId } - return bankQueries.getAllBanks { id, domesticBankCode, loginName, password, bankName, bic, customerName, userId, selectedTanMethodIdentifier, selectedTanMediumIdentifier, bankingGroup, serverAddress, countryCode, userSetDisplayName, clientData, displayIndex, iconUrl, wrongCredentialsEntered -> + return bankQueries.getAllBanks { id, domesticBankCode, loginName, password, bankName, bic, customerName, userId, selectedTanMethodIdentifier, selectedTanMediumIdentifier, bankingGroup, serverAddress, countryCode, clientData, userSetDisplayName, displayIndex, iconUrl, wrongCredentialsEntered -> BankAccessEntity(id, domesticBankCode, loginName, password, bankName, bic, customerName, userId, getAccountsOfBank(id, bankAccounts, holdings), selectedTanMethodIdentifier, tanMethods[id] ?: mutableListOf(), selectedTanMediumIdentifier, tanMedia[id] ?: mutableListOf(), bankingGroup?.let { BankingGroup.valueOf(it) }, serverAddress, countryCode, userSetDisplayName, displayIndex.toInt(), iconUrl, wrongCredentialsEntered) }.executeAsList()