pangea-server 3.3.109 → 3.3.111

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.
@@ -306,17 +306,19 @@ function getFinalOrder(order, config = {}) {
306
306
  }
307
307
  function processInstance(model, instance) {
308
308
  for (const [relName] of Object.entries(model.Relations)) {
309
+ console.log(relName);
309
310
  const relInstance = instance[relName];
310
311
  if (!relInstance)
311
312
  continue;
312
313
  const relModel = model.Relations[relName].getModelFn();
313
314
  if (Array.isArray(relInstance)) {
314
- relInstance.forEach((instance) => processInstance(relModel, instance));
315
+ relInstance.forEach((i) => processInstance(relModel, i));
315
316
  }
316
317
  else {
317
318
  processInstance(relModel, relInstance);
318
319
  }
319
320
  }
321
+ console.log(model.name);
320
322
  const jsonInstance = instance.toJSON();
321
323
  model.InitInstance(jsonInstance);
322
324
  return jsonInstance;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.109",
4
+ "version": "3.3.111",
5
5
  "files": [
6
6
  "dist"
7
7
  ],