congruentRowExists的错误格式

This commit is contained in:
Xu Chang 2022-09-22 18:55:52 +08:00
parent c9f841e2b1
commit 88677da7fc
2 changed files with 2 additions and 2 deletions

View File

@ -1060,7 +1060,7 @@ var TreeStore = /** @class */ (function (_super) {
} */
if (this.store[entity] && (this.store[entity])[id]) {
node = this.store[entity] && (this.store[entity])[id];
throw new Exception_1.OakCongruentRowExists(this.constructRow(node, context));
throw new Exception_1.OakCongruentRowExists(entity, this.constructRow(node, context));
}
node2 = {
$txnId: context.getCurrentTxnId(),

View File

@ -817,7 +817,7 @@ export default class TreeStore<ED extends EntityDict & BaseEntityDict, Cxt exten
if (this.store[entity] && (this.store[entity]!)[id as string]) {
const node = this.store[entity] && (this.store[entity]!)[id as string];
throw new OakCongruentRowExists(this.constructRow(node, context)!);
throw new OakCongruentRowExists(entity as string, this.constructRow(node, context)!);
}
const node2: RowNode = {
$txnId: context.getCurrentTxnId()!,