File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,18 +76,18 @@ public static function mutate_and_get_payload() {
76
76
'type ' => 'review ' ,
77
77
'id ' => 1 ,
78
78
'rating ' => 1 ,
79
- 'clientMutationId ' => 1
79
+ 'clientMutationId ' => 1 ,
80
80
);
81
81
82
82
$ payload = array ();
83
83
$ id_parts = ! empty ( $ input ['id ' ] ) ? Relay::fromGlobalId ( $ input ['id ' ] ) : null ;
84
84
$ payload ['id ' ] = isset ( $ id_parts ['id ' ] ) && absint ( $ id_parts ['id ' ] ) ? absint ( $ id_parts ['id ' ] ) : null ;
85
-
85
+
86
86
if ( empty ( $ payload ['id ' ] ) ) {
87
- throw new UserError ( __ ( 'The Review could not be updated ' , 'wp-graphql ' ) );
87
+ throw new UserError ( __ ( 'The Review could not be updated ' , 'wp-graphql-woocommerce ' ) );
88
88
}
89
89
90
- if ( $ input !== array_intersect_key ( $ input , $ skip ) ) {
90
+ if ( array_intersect_key ( $ input , $ skip ) !== $ input ) {
91
91
$ resolver = CommentUpdate::mutate_and_get_payload ();
92
92
93
93
$ payload = $ resolver ( $ input , $ context , $ info );
You can’t perform that action at this time.
0 commit comments