This commit is contained in:
julian 2023-01-16 12:58:10 -06:00
parent 9388885047
commit 0223a75d95

View file

@ -2849,8 +2849,8 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
}
// TODO: optimize this whole lelantus process
await isar.writeTxn(
() async => isar.transactions.putAllByTxid(listLelantusTxData));
await isar
.writeTxn(() async => isar.transactions.putAll(listLelantusTxData));
// // update the _lelantusTransactionData
// final models.TransactionData newTxData =
@ -4074,7 +4074,7 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
}
await isar.writeTxn(() async {
await isar.transactions.putAllByTxid(transactionMap.values.toList());
await isar.transactions.putAll(transactionMap.values.toList());
});
}