-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
error when overwriting query var #1992
Comments
To help us debug this, can you include the exact request and response in Parse Server? (you can see this in the logs using |
|
It appears that this also works: The main thing is that the line query = new Parse.Query("Tick"); needs to be inside the loop to get correct results which wasn't required in Parse |
We're closing this issue due to inactivity. If this is a bug you care about that is not getting attention, consider opening a pull request with a fix. |
When I ran the following cloud code on parse-server I recieved the id of the first element twice ["VYSPEFBSx4", "VYSPEFBSx4"]
The response should be ["VYSPEFBSx4", "EBLarI2NA1"] however it appears that the parse query was not overwritten for the second element in the loop. (This error did NOT occur on Parse.)
I finally found the solution which is to declare the parse query in the forEach loop like:
I did not see any mention of this error in the migration guide and thought it might be helpful
The text was updated successfully, but these errors were encountered: