Ignores createdAt when update (#3111)
This commit is contained in:
committed by
Florent Vilmart
parent
8f1c1f419b
commit
85567310d4
@@ -842,6 +842,9 @@ RestWrite.prototype.runDatabaseOperation = function() {
|
||||
if (this.className === '_User' && this.data._hashed_password && this.config.passwordPolicy && this.config.passwordPolicy.maxPasswordAge) {
|
||||
this.data._password_changed_at = Parse._encode(new Date());
|
||||
}
|
||||
// Ignore createdAt when update
|
||||
delete this.data.createdAt;
|
||||
|
||||
// Run an update
|
||||
return this.config.database.update(this.className, this.query, this.data, this.runOptions)
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user