Added reverted changes back in
This commit is contained in:
parent
525da56606
commit
5a9ce272b9
2 changed files with 18 additions and 6 deletions
server/utils/chainquery
|
@ -172,12 +172,14 @@ function getClaimsSince (time, lastID, MaxClaimsInCall) {
|
|||
`p.name as channel,` +
|
||||
`c.bid_state,` +
|
||||
`c.effective_amount,` +
|
||||
`COALESCE(p.effective_amount,1) as certificate_amount,` +
|
||||
`c.claim_id as claimId,` +
|
||||
`c.value_as_json as value ` +
|
||||
`FROM claim c ` +
|
||||
`LEFT JOIN claim p on p.claim_id = c.publisher_id ` +
|
||||
`WHERE c.id >` + lastID + ` ` +
|
||||
`AND c.modified_at >='` + time + `' ` +
|
||||
`ORDER BY c.id ` +
|
||||
`LIMIT ` + MaxClaimsInCall;
|
||||
// Outputs full query to console for copy/paste into chainquery (debugging)
|
||||
// console.log(query);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue