File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ describe('Cloud Code', () => {
343
343
expect ( results . length ) . toBe ( 1 ) ;
344
344
expect ( results [ 0 ] . id ) . toBe ( secret . id ) ;
345
345
} ) ;
346
-
346
+
347
347
it ( 'should apply protectedFields masking after re-filtering' , async ( ) => {
348
348
// Configure protectedFields for SecretMask: mask `secretField` for everyone
349
349
const protectedFields = { SecretMask : { '*' : [ 'secretField' ] } } ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ async function runFindTriggers(
34
34
options = { }
35
35
) {
36
36
const { isGet } = options ;
37
-
37
+
38
38
// Run beforeFind trigger - may modify query or return objects directly
39
39
const result = await triggers . maybeRunQueryTrigger (
40
40
triggers . Types . beforeFind ,
@@ -62,7 +62,7 @@ async function runFindTriggers(
62
62
const ids = ( Array . isArray ( objectsFromBeforeFind ) ? objectsFromBeforeFind : [ objectsFromBeforeFind ] )
63
63
. map ( o => ( o && ( o . id || o . objectId ) ) || null )
64
64
. filter ( Boolean ) ;
65
-
65
+
66
66
// Objects without IDs are(normally) unsaved objects
67
67
// For unsaved objects, the ACL security does not apply, so no need to redo the query.
68
68
// For saved objects, we need to re-query to ensure proper ACL/CLP enforcement
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ export function maybeRunAfterFindTrigger(
495
495
auth ,
496
496
config . logLevels . triggerBeforeSuccess
497
497
) ;
498
-
498
+
499
499
// Convert plain objects to Parse.Object instances for trigger
500
500
request . objects = objectsInput . map ( currentObject => {
501
501
if ( currentObject instanceof Parse . Object ) {
You can’t perform that action at this time.
0 commit comments