-
-
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
Updating attributes in beforeSave not working #866
Comments
I was just working on this and submitted #865 to correct this for an older issue. 👍 It will be fixed in the next release. |
@gfosco awesome, but wonder if theres a workaround for the time being? I use beforeSave to modify stuff in alot of places ... |
@gfosco Any timeline on the next release with this fix? |
+1, any info? |
I still seem to have this problem on version 2.2.4. Am I doing something wrong here? My code looks identical to the example @jiewmeng provided. |
I am using version 2.2.7 and seems that after you changed the request.object your have to call |
@ flovilmart , @gfosco , it seems that @flavionegrao solution works. It seems that if in the beforeSave I add a new field to the object being save and call response.success("some string) then the new field is not being added to the object being saved, but if I do response.success() it does add the filed? |
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
Environment Setup
Steps to reproduce
In main.js add
The result:
override
attribute not set as expectedLogs/Trace
The text was updated successfully, but these errors were encountered: