Prevent afterFind with saving objects (#6127)
Fixes: https://github.com/parse-community/parse-server/issues/6088
This commit is contained in:
10
src/rest.js
10
src/rest.js
@@ -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',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user