diff --git a/server/web3dbspider/services/dbevent_process.js b/server/web3dbspider/services/dbevent_process.js index a204d84..e836a4b 100644 --- a/server/web3dbspider/services/dbevent_process.js +++ b/server/web3dbspider/services/dbevent_process.js @@ -79,7 +79,7 @@ class DbEventProcess extends BaseService { return; } const {err, rows} = await this.conn.execQuery( - 'SELECT * FROM ${tableName} WHERE `idx` > ? AND `idx` <= ? ' + + `SELECT * FROM ${tableName} WHERE idx > ? AND idx <= ? ` + 'AND net_id = ? AND event_name = ? AND contract_address = ? AND ' + 'status = ' + constant.EVENTDB_STATE_PENDING + ' ' + 'LIMIT ' + LIMIT_COUNT,