index on unique-indexes: c454180 Revert "Log objects rather than JSON stringified objects (#1922)"
reconfigure username/email tests Fix broken cloud code Save callback to variable undo Fix all tests where connections are left open after server closes. Fix issues caused by missing gridstore adapter remove uses of _collection reorder find() arguments Accept a database adapter as a parameter sudo maybe? use postgres username reorder find() arguments Build objects with default fields correctly Don't tell adapter about ACL WIP
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import MongoCollection from './MongoCollection';
|
||||
|
||||
function mongoFieldToParseSchemaField(type) {
|
||||
@@ -127,6 +126,12 @@ function mongoSchemaFromFieldsAndClassNameAndCLP(fields, className, classLevelPe
|
||||
}
|
||||
}
|
||||
|
||||
// Legacy mongo adapter knows about the difference between password and _hashed_password.
|
||||
// Future database adapters will only know about _hashed_password.
|
||||
// Note: Parse Server will bring back password with injectDefaultSchema, so we don't need
|
||||
// to add it here.
|
||||
delete mongoObject._hashed_password;
|
||||
|
||||
return mongoObject;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user