Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Internal server error on set followed by unset #2298

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions integration/test/cloud/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ Parse.Cloud.define('TestFetchFromLocalDatastore', function (request) {
return object.save();
});

Parse.Cloud.define('UpdateUser', function (request) {
Parse.Cloud.define('UpdateUser', async function (request) {
const user = new Parse.User();
user.id = request.params.id;
user.set('foo', 'changed');
return user.save(null, { useMasterKey: true });
return await user.save(null, { useMasterKey: true });
});

Parse.Cloud.define('CloudFunctionIdempotency', function () {
Parse.Cloud.define('CloudFunctionIdempotency', async function () {
const object = new Parse.Object('IdempotencyItem');
return object.save(null, { useMasterKey: true });
return await object.save(null, { useMasterKey: true });
});

Parse.Cloud.define('CloudFunctionUndefined', function () {
Expand Down
Loading