Parse-SDK-JS icon indicating copy to clipboard operation
Parse-SDK-JS copied to clipboard

fix: `Parse.Object.saveEventually` fails if server is restarting while calling it

Open mortenmo opened this issue 5 months ago • 1 comments

Pull Request

Issue

Closes: 2028

As issue describes, save fails due to the ACL object being stored to JSON and back causing the following error when connection is back:

Error: ACL must be a Parse ACL.
    at ParseObjectSubclass.value (ParseObject.js:1259:16)
    at ParseObjectSubclass.value (ParseObject.js:1578:31)
    at EventuallyQueue.js:386:27

Approach

This is a quick fix using the saveJson format instead when storing the object locally. There might be a better representation of the object in a string store if someone can tell me what that is.

mortenmo avatar Mar 16 '24 17:03 mortenmo

Thanks for opening this pull request!

Fixed via https://github.com/parse-community/Parse-SDK-JS/pull/2097

dplewis avatar Apr 03 '24 14:04 dplewis