pangea-server 1.0.24 → 1.0.26
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.
|
@@ -209,7 +209,7 @@ function getIncludeAndWhere(model, includeItems, where, relDepth = new Map(), pa
|
|
|
209
209
|
console.log(`----- Model: ${model.name} -----`);
|
|
210
210
|
for (const [relName, rel] of Object.entries(model.Relations)) {
|
|
211
211
|
const relKey = `${parentKey}->${relName}`;
|
|
212
|
-
console.log(`-----
|
|
212
|
+
console.log(`----- relKey: ${relKey} -----`);
|
|
213
213
|
const currentDepth = relDepth.get(relKey) || 0;
|
|
214
214
|
const maxDepth = rel.joinDepth;
|
|
215
215
|
if (currentDepth >= maxDepth)
|
|
@@ -222,7 +222,7 @@ function getIncludeAndWhere(model, includeItems, where, relDepth = new Map(), pa
|
|
|
222
222
|
const newRelDepth = new Map(relDepth);
|
|
223
223
|
newRelDepth.set(relKey, currentDepth + 1);
|
|
224
224
|
const relModel = rel.getModelFn();
|
|
225
|
-
console.log(`----- relModel: ${relModel} -----`);
|
|
225
|
+
console.log(`----- relModel: ${relModel.name} -----`);
|
|
226
226
|
includeOptions.push({
|
|
227
227
|
model: relModel,
|
|
228
228
|
as: relName,
|