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', () => {
343343 expect ( results . length ) . toBe ( 1 ) ;
344344 expect ( results [ 0 ] . id ) . toBe ( secret . id ) ;
345345 } ) ;
346-
346+
347347 it ( 'should apply protectedFields masking after re-filtering' , async ( ) => {
348348 // Configure protectedFields for SecretMask: mask `secretField` for everyone
349349 const protectedFields = { SecretMask : { '*' : [ 'secretField' ] } } ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ async function runFindTriggers(
3434 options = { }
3535) {
3636 const { isGet } = options ;
37-
37+
3838 // Run beforeFind trigger - may modify query or return objects directly
3939 const result = await triggers . maybeRunQueryTrigger (
4040 triggers . Types . beforeFind ,
@@ -62,7 +62,7 @@ async function runFindTriggers(
6262 const ids = ( Array . isArray ( objectsFromBeforeFind ) ? objectsFromBeforeFind : [ objectsFromBeforeFind ] )
6363 . map ( o => ( o && ( o . id || o . objectId ) ) || null )
6464 . filter ( Boolean ) ;
65-
65+
6666 // Objects without IDs are(normally) unsaved objects
6767 // For unsaved objects, the ACL security does not apply, so no need to redo the query.
6868 // 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(
495495 auth ,
496496 config . logLevels . triggerBeforeSuccess
497497 ) ;
498-
498+
499499 // Convert plain objects to Parse.Object instances for trigger
500500 request . objects = objectsInput . map ( currentObject => {
501501 if ( currentObject instanceof Parse . Object ) {
You can’t perform that action at this time.
0 commit comments