fix bug of event catcher
This commit is contained in:
parent
51d1ffe77e
commit
5ef4c8563e
@ -10,7 +10,6 @@ import { NftHolder } from 'models/NftHolder'
|
||||
import { TokenHolder } from 'models/TokenHolder'
|
||||
import { NftStake } from 'models/NftStake'
|
||||
import { IEventCfg } from "interface/IEventCfg";
|
||||
import { parse } from "path";
|
||||
|
||||
let eventProcessers = {
|
||||
NftHolder: NftHolder,
|
||||
@ -62,7 +61,7 @@ export class EventBatchSvr {
|
||||
params.push(_param)
|
||||
} else {
|
||||
let _param = uninParams[uninParams.length - 1]
|
||||
if (!_param || topicsSet.size > 1) {
|
||||
if (!_param || !topicsSet.has(cfg.topic)) {
|
||||
_param = this.buildQueryParams(cfg, toBlock)
|
||||
uninParams.push(_param)
|
||||
topicsSet = new Set()
|
||||
|
Loading…
x
Reference in New Issue
Block a user