File tree 3 files changed +7
-2
lines changed
app/code/Magento/CustomerGraphQl/Model 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
105
105
$ customerData ['group_id ' ] = null ;
106
106
$ customerData ['model ' ] = $ customer ;
107
107
$ customerData ['id ' ] = null ;
108
-
108
+ $ customerData [ ' date_of_birth ' ] = $ customerData [ ' dob ' ];
109
109
return $ customerData ;
110
110
}
111
111
}
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ public function resolve(
70
70
if (!$ this ->newsLetterConfig ->isActive (ScopeInterface::SCOPE_STORE )) {
71
71
$ args ['input ' ]['is_subscribed ' ] = false ;
72
72
}
73
-
73
+ if (isset ($ args ['input ' ]['date_of_birth ' ])) {
74
+ $ args ['input ' ]['dob ' ] = $ args ['input ' ]['date_of_birth ' ];
75
+ }
74
76
$ customer = $ this ->createCustomerAccount ->execute (
75
77
$ args ['input ' ],
76
78
$ context ->getExtensionAttributes ()->getStore ()
Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ public function resolve(
70
70
if (empty ($ args ['input ' ]) || !is_array ($ args ['input ' ])) {
71
71
throw new GraphQlInputException (__ ('"input" value should be specified ' ));
72
72
}
73
+ if (isset ($ args ['input ' ]['date_of_birth ' ])) {
74
+ $ args ['input ' ]['dob ' ] = $ args ['input ' ]['date_of_birth ' ];
75
+ }
73
76
74
77
$ customer = $ this ->getCustomer ->execute ($ context );
75
78
$ this ->updateCustomerAccount ->execute (
You can’t perform that action at this time.
0 commit comments