Skip to content

Commit

Permalink
#23 Move filter parameters to groupBy
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorml committed Nov 14, 2022
1 parent 381ec08 commit 8ae52d8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/sections/operations/operations.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@
"offset": offset,
"from_date": date_from ? date_from : (offset < MAGIC_NUMBER ? "now-1M" : "2015-10-10"),
"to_date": date_to,
"asset_id": assetId ? assetId : undefined,
"operation_type": Number(operationType) === -1 ? undefined : operationType,
"account_id": accountId ? accountId : undefined,
"creditoffer_id": creditOfferId ? creditOfferId : undefined,
"pool_id": poolId ? poolId : undefined
"group_by": {
"asset_id": assetId ? assetId : undefined,
"operation_type": Number(operationType) === -1 ? undefined : operationType,
"account_id": accountId ? accountId : undefined,
"creditoffer_id": creditOfferId ? creditOfferId : undefined,
"pool_id": poolId ? poolId : undefined
}
}
}).then(response => {
if(response && response.data && (response.data.asset_not_found || response.data.account_not_found)) {
Expand Down

0 comments on commit 8ae52d8

Please sign in to comment.