translateCascadeRelationFilterMaker中的小笔误
This commit is contained in:
parent
ef8a6428af
commit
912e68047a
|
|
@ -359,7 +359,7 @@ function translateCascadeRelationFilterMaker(schema, lch, entity2, pathPrefix) {
|
||||||
var getForeignKeyId_1 = function (d) {
|
var getForeignKeyId_1 = function (d) {
|
||||||
if (relation === 2) {
|
if (relation === 2) {
|
||||||
if (d.entity === attr && typeof d.entityId === 'string') {
|
if (d.entity === attr && typeof d.entityId === 'string') {
|
||||||
return d.entitId;
|
return d.entityId;
|
||||||
}
|
}
|
||||||
throw new Exception_1.OakUserUnpermittedException();
|
throw new Exception_1.OakUserUnpermittedException();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -335,7 +335,7 @@ function translateCascadeRelationFilterMaker<ED extends EntityDict & BaseEntityD
|
||||||
const getForeignKeyId = (d: ED[keyof ED]['CreateSingle']['data']) => {
|
const getForeignKeyId = (d: ED[keyof ED]['CreateSingle']['data']) => {
|
||||||
if (relation === 2) {
|
if (relation === 2) {
|
||||||
if (d.entity === attr && typeof d.entityId === 'string') {
|
if (d.entity === attr && typeof d.entityId === 'string') {
|
||||||
return d.entitId as string;
|
return d.entityId as string;
|
||||||
}
|
}
|
||||||
throw new OakUserUnpermittedException();
|
throw new OakUserUnpermittedException();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue