This commit is contained in:
aozhiwei 2023-07-11 14:22:37 +08:00
parent 5312396dc4
commit 9886063bb3
3 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ class DbEventProcess extends BaseService {
if (!this.eventHandle) { if (!this.eventHandle) {
return false; return false;
} }
const handle = eventsFactory.createHandle(this); const handle = eventsFactory.createEventHandle(this);
await handle.start(); await handle.start();
return true; return true;
} }

View File

@ -13,7 +13,7 @@ class BaseEventProcess {
this.eventProc = proc; this.eventProc = proc;
this.conn = conn; this.conn = conn;
this.eventDb = eventDb; this.eventDb = eventDb;
this.returnValues = utils.jsonDecode(this.getEventDb()); this.returnValues = utils.jsonDecode(this.getEventDb()['return_values']);
} }
genLogHead(msg) { genLogHead(msg) {

View File

@ -122,7 +122,7 @@ class PullDbEvent extends BaseService {
} }
getInstanceName() { getInstanceName() {
const instName = this.getNetId() + '.' + this.getContractName() + '.' + this.getEventName(); const instName = this.getNetId() + ' ' + this.getContractName() + '.' + this.getEventName();
return instName; return instName;
} }