mergeOperation中action判断修改

This commit is contained in:
lxy 2024-06-24 12:14:57 +08:00
parent d05186ad39
commit 3e5ae2f4b9
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ function mergeOperation(schema, entity, oper1, oper2) {
oper1.action = action;
}
else {
assert(false, '不应当有冲突的update模式');
assert(action === oper1.action, '不应当有冲突的update模式');
}
}
const { data: dataMerged } = operMerged;

View File

@ -29,7 +29,7 @@ function mergeOperation(schema, entity, oper1, oper2) {
oper1.action = action;
}
else {
(0, assert_1.assert)(false, '不应当有冲突的update模式');
(0, assert_1.assert)(action === oper1.action, '不应当有冲突的update模式');
}
}
const { data: dataMerged } = operMerged;

View File

@ -53,7 +53,7 @@ function mergeOperation<ED extends EntityDict & BaseEntityDict, T extends keyof
oper1.action = action;
}
else {
assert(false, '不应当有冲突的update模式');
assert(action === oper1.action, '不应当有冲突的update模式');
}
}