Merge pull request #1126 from ubavic/fix-caching

fix: disable cache in transaction resolver
This commit is contained in:
Rafael Taranto 2022-02-24 20:50:48 +00:00 committed by GitHub
commit 63e8fdc917

View file

@ -9,7 +9,7 @@ const transactions = require('../../services/transactions')
const anonymous = require('../../../constants').anonymousCustomer
const logDateFormat = require('../../../logs').logDateFormat
const transactionsLoader = new DataLoader(ids => transactions.getCustomerTransactionsBatch(ids))
const transactionsLoader = new DataLoader(ids => transactions.getCustomerTransactionsBatch(ids), { cache: false })
const txLogFields = ['txClass', 'id', 'deviceId', 'toAddress', 'cryptoAtoms',
'cryptoCode', 'fiat', 'fiatCode', 'fee', 'status', 'fiatProfit',
'dispense', 'notified', 'redeem', 'phone', 'error',