This commit is contained in:
aozhiwei 2023-07-11 19:19:20 +08:00
parent 89fc7388a5
commit f429bbe5ef
2 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,7 @@ class Activate721Nft extends BaseEventProcess {
itemUniId,
itemId);
await this.confirmTransactionDb(transId);
await this.markOk();
}
async mintNft(transId, owner, tokenId, itemUniId, itemId) {

View File

@ -75,12 +75,15 @@ class BaseEventProcess {
}
async markOk() {
await this.updateEventDb(
const {err} = await this.updateEventDb(
[
['state', constant.EVENTDB_STATE_HANDLED],
['modifytime', utils.getUtcTime()],
]
);
if (err) {
this.throwError('markOk error');
}
}
async updateEventDb(fields) {