oak-domain 2.6.4 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/store/checker.js +1 -1
- package/package.json +1 -1
package/lib/store/checker.js
CHANGED
|
@@ -362,7 +362,7 @@ function translateCascadeRelationFilterMaker(schema, lch, entity2, pathPrefix) {
|
|
|
362
362
|
var counters = [];
|
|
363
363
|
if (filter) {
|
|
364
364
|
if (relation === 2) {
|
|
365
|
-
if (filter.entity ===
|
|
365
|
+
if (filter.entity === attr && filter.entityId) {
|
|
366
366
|
// 这里对entityId的限定的数据只要和userId有一条relation,就不能否定可能会有创建动作(外键在最终create时,data上一定会有判定)
|
|
367
367
|
counters.push({
|
|
368
368
|
$entity: attr,
|