Skip to content

Commit

Permalink
Fix: inline -> source
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored and m-kus committed Oct 19, 2020
1 parent c16286f commit 478fafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/elastic/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (e *Elastic) GetOperationsForContract(network, address string, size uint64,
"type": "number",
"script": qItem{
"lang": "painless",
"inline": "doc['level'].value * 10000000000L + (doc['counter'].value) * 1000L + (doc['internal'].value ? (998L - doc['nonce'].value) : 999L)",
"source": "doc['level'].value * 10000000000L + (doc['counter'].value) * 1000L + (doc['internal'].value ? (998L - doc['nonce'].value) : 999L)",
},
"order": "desc",
},
Expand Down Expand Up @@ -241,7 +241,7 @@ func (e *Elastic) GetOperations(filters map[string]interface{}, size int64, sort
"type": "number",
"script": qItem{
"lang": "painless",
"inline": "doc['level'].value * 10000000000L + (doc['counter'].value) * 1000L + (doc['internal'].value ? (998L - doc['nonce'].value) : 999L)",
"source": "doc['level'].value * 10000000000L + (doc['counter'].value) * 1000L + (doc['internal'].value ? (998L - doc['nonce'].value) : 999L)",
},
"order": "desc",
},
Expand Down

0 comments on commit 478fafe

Please sign in to comment.