File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
app/code/Magento/CustomerGraphQl/Model Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public function execute(CustomerInterface $customer): array
105105 $ customerData ['group_id ' ] = null ;
106106 $ customerData ['model ' ] = $ customer ;
107107 $ customerData ['id ' ] = null ;
108-
108+ $ customerData [ ' date_of_birth ' ] = $ customerData [ ' dob ' ];
109109 return $ customerData ;
110110 }
111111}
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ public function resolve(
7070 if (!$ this ->newsLetterConfig ->isActive (ScopeInterface::SCOPE_STORE )) {
7171 $ args ['input ' ]['is_subscribed ' ] = false ;
7272 }
73-
73+ if (isset ($ args ['input ' ]['date_of_birth ' ])) {
74+ $ args ['input ' ]['dob ' ] = $ args ['input ' ]['date_of_birth ' ];
75+ }
7476 $ customer = $ this ->createCustomerAccount ->execute (
7577 $ args ['input ' ],
7678 $ context ->getExtensionAttributes ()->getStore ()
Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ public function resolve(
7070 if (empty ($ args ['input ' ]) || !is_array ($ args ['input ' ])) {
7171 throw new GraphQlInputException (__ ('"input" value should be specified ' ));
7272 }
73+ if (isset ($ args ['input ' ]['date_of_birth ' ])) {
74+ $ args ['input ' ]['dob ' ] = $ args ['input ' ]['date_of_birth ' ];
75+ }
7376
7477 $ customer = $ this ->getCustomer ->execute ($ context );
7578 $ this ->updateCustomerAccount ->execute (
You can’t perform that action at this time.
0 commit comments