pangea-server 3.3.115 → 3.3.117
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.
|
@@ -311,7 +311,6 @@ function processInstance(model, instance) {
|
|
|
311
311
|
console.log('relInstance');
|
|
312
312
|
if (!relInstance)
|
|
313
313
|
continue;
|
|
314
|
-
console.dir(relInstance.toJSON(), { depth: 1 });
|
|
315
314
|
const relModel = model.Relations[relName].getModelFn();
|
|
316
315
|
if (Array.isArray(relInstance)) {
|
|
317
316
|
console.log('Array.isArray(relInstance)');
|
|
@@ -319,16 +318,18 @@ function processInstance(model, instance) {
|
|
|
319
318
|
}
|
|
320
319
|
else {
|
|
321
320
|
console.log('!!! Array.isArray(relInstance)');
|
|
321
|
+
console.log(relInstance.id);
|
|
322
322
|
processInstance(relModel, relInstance);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
console.log(model.name);
|
|
326
326
|
const jsonInstance = instance.toJSON();
|
|
327
327
|
console.log('jsonInstance');
|
|
328
|
-
console.
|
|
328
|
+
console.log(jsonInstance.id);
|
|
329
|
+
console.log(jsonInstance.name);
|
|
329
330
|
model.InitInstance(jsonInstance);
|
|
330
331
|
console.log('model.InitInstance()');
|
|
331
|
-
console.
|
|
332
|
+
console.log(jsonInstance.subscriptionStatus);
|
|
332
333
|
return jsonInstance;
|
|
333
334
|
}
|
|
334
335
|
function processInstances(model, instances) {
|