commit时将message清零

This commit is contained in:
Xu Chang 2024-01-08 10:54:16 +08:00
parent 96a8576749
commit 5b3bf17ace
2 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,7 @@ class AsyncContext {
this.resetEvents();
this.opRecords = [];
this.opResult = {};
this.message = '';
for (const e of commitEvents) {
await e();
}

View File

@ -140,6 +140,7 @@ export abstract class AsyncContext<ED extends EntityDict> implements Context {
this.resetEvents();
this.opRecords = [];
this.opResult = {};
this.message = '';
for (const e of commitEvents) {
await e();
}