Skip to content

Cannot update installations with useMasterKey #2887

Closed
@JeremyPlease

Description

@JeremyPlease

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions