mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
auto format on save
This commit is contained in:
parent
3c1a3f23e3
commit
7d1d7cb804
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue