@@ -615,7 +615,7 @@ export function maybeRunQueryTrigger(
615615 objects = [ result ] ;
616616 } else if (
617617 Array . isArray ( result ) &&
618- ( ! result . length || result . some ( obj => obj instanceof Parse . Object ) )
618+ ( ! result . length || result . every ( obj => obj instanceof Parse . Object ) )
619619 ) {
620620 objects = result ;
621621 }
@@ -872,7 +872,9 @@ export function maybeRunTrigger(
872872 }
873873 return new Promise ( function ( resolve , reject ) {
874874 var trigger = getTrigger ( parseObject . className , triggerType , config . applicationId ) ;
875- if ( ! trigger ) { return resolve ( ) ; }
875+ if ( ! trigger ) {
876+ return resolve ( ) ;
877+ }
876878 var request = getRequestObject (
877879 triggerType ,
878880 auth ,
@@ -1044,12 +1046,26 @@ export async function maybeRunFileTrigger(triggerType, fileObject, config, auth)
10441046 return fileObject ;
10451047}
10461048
1047- export async function maybeRunGlobalConfigTrigger ( triggerType , auth , configObject , originalConfigObject , config , context ) {
1049+ export async function maybeRunGlobalConfigTrigger (
1050+ triggerType ,
1051+ auth ,
1052+ configObject ,
1053+ originalConfigObject ,
1054+ config ,
1055+ context
1056+ ) {
10481057 const GlobalConfigClassName = getClassName ( Parse . Config ) ;
10491058 const configTrigger = getTrigger ( GlobalConfigClassName , triggerType , config . applicationId ) ;
10501059 if ( typeof configTrigger === 'function' ) {
10511060 try {
1052- const request = getRequestObject ( triggerType , auth , configObject , originalConfigObject , config , context ) ;
1061+ const request = getRequestObject (
1062+ triggerType ,
1063+ auth ,
1064+ configObject ,
1065+ originalConfigObject ,
1066+ config ,
1067+ context
1068+ ) ;
10531069 await maybeRunValidator ( request , `${ triggerType } .${ GlobalConfigClassName } ` , auth ) ;
10541070 if ( request . skipWithMasterKey ) {
10551071 return configObject ;
0 commit comments