feat: return logs in csv format
This commit is contained in:
parent
542ba9f1b7
commit
a108df0c4c
7 changed files with 65 additions and 13 deletions
|
|
@ -21,6 +21,12 @@ const useStyles = makeStyles(mainStyles)
|
|||
|
||||
const NUM_LOG_RESULTS = 1000
|
||||
|
||||
const GET_TRANSACTIONS_CSV = gql`
|
||||
query transactions($limit: Int, $from: Date, $until: Date) {
|
||||
transactionsCsv(limit: $limit, from: $from, until: $until)
|
||||
}
|
||||
`
|
||||
|
||||
const GET_TRANSACTIONS = gql`
|
||||
query transactions($limit: Int, $from: Date, $until: Date) {
|
||||
transactions(limit: $limit, from: $from, until: $until) {
|
||||
|
|
@ -142,8 +148,8 @@ const Transactions = () => {
|
|||
<LogsDowloaderPopover
|
||||
title="Download logs"
|
||||
name="transactions"
|
||||
query={GET_TRANSACTIONS}
|
||||
getLogs={logs => R.path(['transactions'])(logs)}
|
||||
query={GET_TRANSACTIONS_CSV}
|
||||
getLogs={logs => R.path(['transactionsCsv'])(logs)}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue