remove another use of schemaController
This commit is contained in:
@@ -835,12 +835,10 @@ const mongoObjectToParseObject = (schemaController, className, mongoObject, sche
|
|||||||
expected = schemaController.getExpectedType(className, newKey);
|
expected = schemaController.getExpectedType(className, newKey);
|
||||||
}
|
}
|
||||||
if (!schema.fields[newKey]) {
|
if (!schema.fields[newKey]) {
|
||||||
log.info('transform.js',
|
log.info('transform.js', 'Found a pointer column not in the schema, dropping it.', className, newKey);
|
||||||
'Found a pointer column not in the schema, dropping it.',
|
|
||||||
className, newKey);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (expected && expected.type !== 'Pointer') {
|
if (schema.fields[newKey].type !== 'Pointer') {
|
||||||
log.info('transform.js', 'Found a pointer in a non-pointer column, dropping it.', className, key);
|
log.info('transform.js', 'Found a pointer in a non-pointer column, dropping it.', className, key);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user