Parse-SDK-JS
Parse-SDK-JS copied to clipboard
fix: `Parse.Object.saveEventually` fails if server is restarting while calling it
Pull Request
- Report security issues confidentially.
- Any contribution is under this license.
- Link this pull request to an issue.
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.
Thanks for opening this pull request!
Fixed via https://github.com/parse-community/Parse-SDK-JS/pull/2097