Prevent afterFind with saving objects (#6127)

Fixes: https://github.com/parse-community/parse-server/issues/6088
This commit is contained in:
Diamond Lewis
2019-10-15 15:50:25 -05:00
committed by GitHub
parent 45bf4e6bcc
commit 095164babd
3 changed files with 69 additions and 2 deletions

View File

@@ -225,7 +225,15 @@ function update(config, auth, className, restWhere, restObject, clientSDK) {
const hasLiveQuery = checkLiveQuery(className, config);
if (hasTriggers || hasLiveQuery) {
// Do not use find, as it runs the before finds
return new RestQuery(config, auth, className, restWhere).execute({
return new RestQuery(
config,
auth,
className,
restWhere,
undefined,
undefined,
false
).execute({
op: 'update',
});
}