File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ RestWrite.prototype.execute = function() {
67
67
return this . handleInstallation ( ) ;
68
68
} ) . then ( ( ) => {
69
69
return this . handleSession ( ) ;
70
+ } ) . then ( ( ) => {
71
+ return this . validateAuthData ( ) ;
70
72
} ) . then ( ( ) => {
71
73
return this . runBeforeTrigger ( ) ;
72
74
} ) . then ( ( ) => {
73
75
return this . setRequiredFieldsIfNeeded ( ) ;
74
- } ) . then ( ( ) => {
75
- return this . validateAuthData ( ) ;
76
76
} ) . then ( ( ) => {
77
77
return this . transformUser ( ) ;
78
78
} ) . then ( ( ) => {
@@ -134,6 +134,10 @@ RestWrite.prototype.validateSchema = function() {
134
134
// Runs any beforeSave triggers against this operation.
135
135
// Any change leads to our data being mutated.
136
136
RestWrite . prototype . runBeforeTrigger = function ( ) {
137
+ if ( this . response ) {
138
+ return ;
139
+ }
140
+
137
141
// Avoid doing any setup for triggers if there is no 'beforeSave' trigger for this class.
138
142
if ( ! triggers . triggerExists ( this . className , triggers . Types . beforeSave , this . config . applicationId ) ) {
139
143
return Promise . resolve ( ) ;
You can’t perform that action at this time.
0 commit comments