add context to Parse.Object.save (#6626)
* added failing test * added parsing of context in REST save request * undo lint changes
This commit is contained in:
@@ -53,6 +53,11 @@ function RestWrite(
|
||||
}
|
||||
|
||||
if (!query) {
|
||||
// Parse context
|
||||
if (data._context && data._context instanceof Object) {
|
||||
this.context = data._context;
|
||||
delete data._context;
|
||||
}
|
||||
if (this.config.allowCustomObjectId) {
|
||||
if (
|
||||
Object.prototype.hasOwnProperty.call(data, 'objectId') &&
|
||||
|
||||
Reference in New Issue
Block a user