btc all own addresses query fix

This commit is contained in:
julian 2023-04-26 13:11:56 -06:00
parent a236316291
commit d0bb0183f3

View file

@ -1368,10 +1368,12 @@ class BitcoinWallet extends CoinServiceAPI
.getAddresses(walletId) .getAddresses(walletId)
.filter() .filter()
.not() .not()
.group(
(q) => q
.typeEqualTo(isar_models.AddressType.nonWallet) .typeEqualTo(isar_models.AddressType.nonWallet)
.and() .or()
.not() .subTypeEqualTo(isar_models.AddressSubType.nonWallet),
.subTypeEqualTo(isar_models.AddressSubType.nonWallet) )
.findAll(); .findAll();
return allAddresses; return allAddresses;
} }