checker中的一个笔误

This commit is contained in:
Xu Chang 2023-03-15 19:37:34 +08:00
parent 19ed68cfab
commit fb31bf05b8
2 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ function translateCascadeRelationFilterMaker(schema, lch, entity2, pathPrefix) {
var counters = []; var counters = [];
if (filter) { if (filter) {
if (relation === 2) { if (relation === 2) {
if (filter.entity === entity && filter.entityId) { if (filter.entity === attr && filter.entityId) {
// 这里对entityId的限定的数据只要和userId有一条relation就不能否定可能会有创建动作外键在最终create时data上一定会有判定 // 这里对entityId的限定的数据只要和userId有一条relation就不能否定可能会有创建动作外键在最终create时data上一定会有判定
counters.push({ counters.push({
$entity: attr, $entity: attr,

View File

@ -353,7 +353,7 @@ function translateCascadeRelationFilterMaker<ED extends EntityDict & BaseEntityD
const counters: CreateRelationCounter<ED>[] = []; const counters: CreateRelationCounter<ED>[] = [];
if (filter) { if (filter) {
if (relation === 2) { if (relation === 2) {
if (filter.entity === entity && filter.entityId) { if (filter.entity === attr && filter.entityId) {
// 这里对entityId的限定的数据只要和userId有一条relation就不能否定可能会有创建动作外键在最终create时data上一定会有判定 // 这里对entityId的限定的数据只要和userId有一条relation就不能否定可能会有创建动作外键在最终create时data上一定会有判定
counters.push({ counters.push({
$entity: attr, $entity: attr,