Updated on 2026-08-14
This commit is contained in:
parent
a02b13ae6a
commit
0ccfceba04
1 changed files with 8 additions and 1 deletions
|
|
@ -70,9 +70,16 @@ class ApplyAccountListSortingUseCase(
|
|||
return@eitherOn
|
||||
}
|
||||
|
||||
accountsCRUDRepository.saveAccounts(accountList = updatedAccountList)
|
||||
applySorting(accountList = updatedAccountList)
|
||||
}
|
||||
|
||||
private suspend fun applySorting(accountList: AccountList) {
|
||||
catch(
|
||||
block = { accountsCRUDRepository.saveAccounts(accountList) },
|
||||
catch = { accountsCRUDRepository.saveAccountsLocally(accountList) },
|
||||
)
|
||||
}
|
||||
|
||||
private suspend fun Raise<Error>.getAccountList(userWalletId: UserWalletId): AccountList {
|
||||
return catch(
|
||||
block = { accountsCRUDRepository.getAccountListSync(userWalletId = userWalletId) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue