From 67e84be16018ff7290af4fa71e2954cef4687bfb Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 23 Oct 2020 18:49:25 +0200 Subject: [PATCH] differntiate orderID and order_number in placeorder --- src/Model/Resolver/PlaceOrder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Resolver/PlaceOrder.php b/src/Model/Resolver/PlaceOrder.php index 55e8050..9faf823 100644 --- a/src/Model/Resolver/PlaceOrder.php +++ b/src/Model/Resolver/PlaceOrder.php @@ -99,7 +99,8 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value return [ 'order' => [ - 'order_id' => $order->getIncrementId(), + 'order_id' => $order->getId(), + 'order_number' => $order->getIncrementId(), ], ]; } catch (NoSuchEntityException $e) {