-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
Current Limitation
Parse Cloud Function validation field constant sets request.object's field to request.original. Wouldn't it be better to use Parse.Object's function .revert, to clear pending operations on these keys, rather than setting it?
Feature / Enhancement Description
I propose changing this block to:
request.object.revert(key);
if (request.object.get(key) == null &&opt.default != null) {
request.object.set(key, opt.default);
}Example Use Case
Alternatives / Workarounds
3rd Party References
Metadata
Metadata
Assignees
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature