remove one use of schemaController

This commit is contained in:
Drew Gross
2016-05-23 16:21:35 -07:00
parent 474a893a22
commit 00de555ecb
2 changed files with 7 additions and 3 deletions

View File

@@ -834,7 +834,7 @@ const mongoObjectToParseObject = (schemaController, className, mongoObject, sche
if (schemaController && schemaController.getExpectedType) {
expected = schemaController.getExpectedType(className, newKey);
}
if (!expected) {
if (!schema.fields[newKey]) {
log.info('transform.js',
'Found a pointer column not in the schema, dropping it.',
className, newKey);