fix: add an args attribute to the component

fix: add a missing argument to the batch function call
This commit is contained in:
Nikola Ubavic 2021-10-20 18:30:02 +02:00
parent ff474ee507
commit be6694b280
2 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,7 @@ const resolvers = {
transactions: (...[, { from, until, limit, offset, deviceId, txClass, machineName, customerName, fiatCode, cryptoCode, toAddress, status }]) =>
transactions.batch(from, until, limit, offset, deviceId, txClass, machineName, customerName, fiatCode, cryptoCode, toAddress, status),
transactionsCsv: (...[, { from, until, limit, offset, txClass, machineName, customerName, fiatCode, cryptoCode, toAddress, status, timezone, simplified }]) =>
transactions.batch(from, until, limit, offset, txClass, machineName, customerName, fiatCode, cryptoCode, toAddress, status, simplified)
transactions.batch(from, until, limit, offset, null, txClass, machineName, customerName, fiatCode, cryptoCode, toAddress, status, simplified)
.then(data => parseAsync(logDateFormat(timezone, data, ['created', 'sendTime']), { fields: txLogFields })),
transactionCsv: (...[, { id, txClass, timezone }]) =>
transactions.getTx(id, txClass).then(data =>

View file

@ -281,6 +281,8 @@ const Transactions = () => {
query={GET_TRANSACTIONS_CSV}
getLogs={logs => R.path(['transactionsCsv'])(logs)}
simplified
timezone={timezone}
args={{ timezone }}
/>
</div>
)}