Skip to content

Commit

Permalink
fix: remove read preference from admin legacy ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Nov 5, 2024
1 parent 35538dc commit 23703b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/api/src/services/ledger/admin-legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ const getWalletBalance = async (account: string, query = {}) => {

const balancePromise = (async () => {
try {
const { balance } = await MainBookAdmin.balance(params, {
readPreference: "secondaryPreferred",
})
const { balance } = await MainBookAdmin.balance(params)
return balance
} finally {
inProgressQueries.delete(inProgressKey)
Expand Down

0 comments on commit 23703b8

Please sign in to comment.