Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use revert with Cloud Validator constant
Browse files Browse the repository at this point in the history
dblythy committed Mar 26, 2022
1 parent b3199d7 commit 770e4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/triggers.js
Original file line number Diff line number Diff line change
@@ -738,7 +738,7 @@ async function builtInTriggerValidator(options, request, auth) {
}
if (opt.constant && request.object) {
if (request.original) {
request.object.set(key, request.original.get(key));
request.object.revert(key);
} else if (opt.default != null) {
request.object.set(key, opt.default);
}

0 comments on commit 770e4ae

Please sign in to comment.