MCPcopy
hub / github.com/parse-community/parse-server / success

Function success

spec/ParseObject.spec.js:1058–1071  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1056 let firstSave = true;
1057
1058 const success = function () {
1059 if (firstSave) {
1060 firstSave = false;
1061 return;
1062 }
1063
1064 const query = new Parse.Query('TestObject');
1065 query.find().then(function (results) {
1066 equal(results.length, 1);
1067 equal(results[0].get('cat'), 'meow');
1068 equal(results[0].get('dog'), 'bark');
1069 done();
1070 });
1071 };
1072
1073 object.save({ cat: 'meow' }).then(success, fail);
1074 object.save({ dog: 'bark' }).then(success, fail);

Callers 1

handleCloudFunctionMethod · 0.85

Calls 3

equalFunction · 0.85
findMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected