pangea-server 1.0.16 → 1.0.18
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.
|
@@ -207,7 +207,7 @@ function getIncludeAndWhere(model, includeItems, where, relDepth = new Map(), pa
|
|
|
207
207
|
const includeOptions = [];
|
|
208
208
|
const cleanWhere = { ...where };
|
|
209
209
|
for (const [relName, rel] of Object.entries(model.Relations)) {
|
|
210
|
-
const relKey = `${parentKey}
|
|
210
|
+
const relKey = `${parentKey}->${relName}`;
|
|
211
211
|
const currentDepth = relDepth.get(relKey) || 0;
|
|
212
212
|
const maxDepth = rel.joinDepth;
|
|
213
213
|
if (currentDepth >= maxDepth)
|