Remove schemaController parameter
This commit is contained in:
@@ -202,7 +202,7 @@ export class MongoStorageAdapter {
|
||||
find(className, query, { skip, limit, sort }, schemaController, schema) {
|
||||
return this.adaptiveCollection(className)
|
||||
.then(collection => collection.find(query, { skip, limit, sort }))
|
||||
.then(objects => objects.map(object => transform.mongoObjectToParseObject(schemaController, className, object, schema)));
|
||||
.then(objects => objects.map(object => transform.mongoObjectToParseObject(className, object, schema)));
|
||||
}
|
||||
|
||||
get transform() {
|
||||
|
||||
@@ -755,7 +755,7 @@ const nestedMongoObjectToNestedParseObject = mongoObject => {
|
||||
|
||||
// Converts from a mongo-format object to a REST-format object.
|
||||
// Does not strip out anything based on a lack of authentication.
|
||||
const mongoObjectToParseObject = (schemaController, className, mongoObject, schema) => {
|
||||
const mongoObjectToParseObject = (className, mongoObject, schema) => {
|
||||
switch(typeof mongoObject) {
|
||||
case 'string':
|
||||
case 'number':
|
||||
|
||||
Reference in New Issue
Block a user