Skip to content

Commit

Permalink
Fixed : #303
Browse files Browse the repository at this point in the history
  • Loading branch information
hwsiew committed Jun 22, 2020
1 parent ce37b71 commit 50968f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/type/object/class-order-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public static function register() {
'type' => 'Order',
'description' => __( 'Parent order', 'wp-graphql-woocommerce' ),
'resolve' => function( $order, array $args, AppContext $context ) {
return Factory::resolve_crud_object( $order->parent, $context );
return Factory::resolve_crud_object( $order->parent_id, $context );
},
),
'customer' => array(
Expand Down

0 comments on commit 50968f4

Please sign in to comment.