auto format on save

This commit is contained in:
julian 2023-07-25 12:07:44 -06:00
parent 3c1a3f23e3
commit 7d1d7cb804

View file

@ -371,7 +371,8 @@ class MainDB {
final transactionCount = await getTransactions(walletId).count(); final transactionCount = await getTransactions(walletId).count();
final addressCount = await getAddresses(walletId).count(); final addressCount = await getAddresses(walletId).count();
final utxoCount = await getUTXOs(walletId).count(); final utxoCount = await getUTXOs(walletId).count();
final lelantusCoinCount = await isar.lelantusCoins.where().walletIdEqualTo(walletId).count(); final lelantusCoinCount =
await isar.lelantusCoins.where().walletIdEqualTo(walletId).count();
await isar.writeTxn(() async { await isar.writeTxn(() async {
const paginateLimit = 50; const paginateLimit = 50;
@ -408,7 +409,9 @@ class MainDB {
// lelantusCoins // lelantusCoins
for (int i = 0; i < lelantusCoinCount; i += paginateLimit) { for (int i = 0; i < lelantusCoinCount; i += paginateLimit) {
final lelantusCoinIds = await isar.lelantusCoins.where().walletIdEqualTo(walletId) final lelantusCoinIds = await isar.lelantusCoins
.where()
.walletIdEqualTo(walletId)
.offset(i) .offset(i)
.limit(paginateLimit) .limit(paginateLimit)
.idProperty() .idProperty()