Passing postgres test with user

This commit is contained in:
Drew Gross
2016-06-10 14:09:48 -07:00
parent f75c8b3a4d
commit 2cafd6919f
4 changed files with 47 additions and 13 deletions

View File

@@ -410,7 +410,7 @@ DatabaseController.prototype.create = function(className, object, { acl } = {})
.then(() => this.handleRelationUpdates(className, null, object))
.then(() => schemaController.enforceClassExists(className))
.then(() => schemaController.getOneSchema(className, true))
.then(schema => this.adapter.createObject(className, schema, object))
.then(schema => this.adapter.createObject(className, SchemaController.convertSchemaToAdapterSchema(schema), object))
.then(result => sanitizeDatabaseResult(originalObject, result.ops[0]));
})
};