parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Cannot update installations with useMasterKey

Open JeremyPlease opened this issue 10 years ago • 0 comments

PR #2739 that fixes issue #2090 caused a regression that prevents installation objects from being updated.

Example:

let installationObj = Parse.Installation.createWithoutData(objectId);
installationObj.set('customField', 'custom value');
installationObj.save(null, {useMasterKey: true});

This returns ParseError { code: 136, message: 'installationId may not be changed in this operation' }

I'll push the failing test case as a WIP PR and try to fix in RestWrite.js. @flovilmart Any quick suggestions or pointers?

JeremyPlease avatar Oct 19 '16 16:10 JeremyPlease