You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
beforeSave success callback works differently for api.parse.com and parse-server #1928
beforeSave success callback works differently for api.parse.com and parse-server.
Passing the object to success fails to update fields on parse-server but correctly updates fields on api.parse.com
This has been described in #1031, #866 already.
success: function(response){// Use the JSON responseif(response&&request.triggerName===Types.beforeSave){returnresolve(response);}response={};if(request.triggerName===Types.beforeSave){response['object']=request.object._getSaveJSON();}returnresolve(response);},
The first if breaks the code, and was added by @flovilmart in 9ac7a52 to support webhooks. Could we do something on the lines of:
Yep good catch, open a PR, and make sure the tests around the webhooks (and others) are good too. Some users as @TylerBrock are moving to that strategy so they would expect it to work correctly.
Activity
flovilmart commentedon May 27, 2016
Yep good catch, open a PR, and make sure the tests around the webhooks (and others) are good too. Some users as @TylerBrock are moving to that strategy so they would expect it to work correctly.