We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519a838 commit 348434cCopy full SHA for 348434c
spec/CloudCode.spec.js
@@ -1553,23 +1553,16 @@ describe('Cloud Code', () => {
1553
if (!object.existed()) {
1554
object.set('secret', true);
1555
}
1556
- return object;
1557
});
1558
1559
- Parse.Cloud.afterSave(
1560
- 'TestObject',
1561
- ({ object }) => {
1562
- object.unset('secret');
1563
- },
1564
- {
1565
- skipWithMasterKey: true,
1566
- }
1567
- );
+ Parse.Cloud.afterSave('TestObject', ({ object }) => {
+ object.unset('secret');
+ });
1568
1569
Parse.Cloud.afterFind(
1570
'TestObject',
1571
({ objects }) => {
1572
- return objects.map(object => object.unset('secret'));
+ objects.map(object => object.unset('secret'));
1573
},
1574
{
1575
skipWithMasterKey: true,
0 commit comments