Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7340 by correclty computing function name for push event #1

Closed
wants to merge 2 commits into from

Conversation

percypyan
Copy link

@percypyan percypyan commented Apr 12, 2021

New Pull Request Checklist

Issue Description

Related issue: parse-community#7340

Approach

First create a failing test to demonstrate the issue described by parse-community#7340. Then simply replace the update of the argument message by the use of the newly created res object.

TODOs before merging

  • Add test cases
  • Add entry to changelog
  • Add changes to documentation (guides, repository pages, in-code descriptions)
  • Add security check
  • Add new Parse Error codes to Parse JS SDK
  • ...

percypyan added 2 commits April 12, 2021 16:01
If any delay occurs after "message.event" assignation in
LiveQueryServer._onAfterSave, the next subscription or request with a different
event might overwrite it, and by that using the wrong "push" function name.
This prevent computing function name from a
incorrect event if multiple subscriptions override
one by one the message.event.
@percypyan percypyan closed this Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant