Browse Source

Added parameters to findAccounts

davidbolet 7 years ago
parent
commit
4435ef514d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/URPC.pas

+ 1 - 1
src/core/URPC.pas

@@ -2230,7 +2230,7 @@ function TRPCProcess.ProcessMethod(const method: String; params: TPCJSONObject;
       // Search by type-forSale-balance
       for i := start to FNode.Bank.AccountsCount - 1 do begin
         account := FNode.Operations.SafeBoxTransaction.Account(i);
-        if (accountType <> -1) AND (Integer(account.account_type) = accountType) then
+        if (accountType <> -1) AND (Integer(account.account_type) <> accountType) then
         begin
            Continue;
         end;