Skip to content

Commit

Permalink
bugfix: createBalanceCache should return latest balance
Browse files Browse the repository at this point in the history
getBalance and createBalanceCache used to be interchangeable.  With the
latest fix to use a safe maxId in createBalanceCache, we were not
returning the latest balance but the balance at safeMaxId time.
  • Loading branch information
ar committed Jun 23, 2016
1 parent 836c176 commit 758ce05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/minigl/src/main/java/org/jpos/gl/GLSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ else if (acct instanceof FinalAccount) {
session.saveOrUpdate (c);
}
}
return balance;
return getBalance(journal, acct, layers);
}

/**
Expand Down

0 comments on commit 758ce05

Please # to comment.