Skip to content

Commit 348434c

Browse files
committed
Update CloudCode.spec.js
1 parent 519a838 commit 348434c

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

spec/CloudCode.spec.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,23 +1553,16 @@ describe('Cloud Code', () => {
15531553
if (!object.existed()) {
15541554
object.set('secret', true);
15551555
}
1556-
return object;
15571556
});
15581557

1559-
Parse.Cloud.afterSave(
1560-
'TestObject',
1561-
({ object }) => {
1562-
object.unset('secret');
1563-
},
1564-
{
1565-
skipWithMasterKey: true,
1566-
}
1567-
);
1558+
Parse.Cloud.afterSave('TestObject', ({ object }) => {
1559+
object.unset('secret');
1560+
});
15681561

15691562
Parse.Cloud.afterFind(
15701563
'TestObject',
15711564
({ objects }) => {
1572-
return objects.map(object => object.unset('secret'));
1565+
objects.map(object => object.unset('secret'));
15731566
},
15741567
{
15751568
skipWithMasterKey: true,

0 commit comments

Comments
 (0)