Skip to content

Commit 48f6957

Browse files
committed
fix: fix bug with get customer
1 parent 996207e commit 48f6957

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

resolver/common/account.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ public function customerList($args)
4747

4848
public function getCustomer($args) {
4949
$this->load->model('common/customer');
50-
51-
$customer_info = $this->model_common_customer->getCustomer($args['id']);
52-
50+
$customer_info = $this->get($args['id']);
5351
return array(
54-
'id' => $customer_info['customer_id'],
55-
'firstName' => $customer_info['firstname'],
56-
'lastName' => $customer_info['lastname'],
52+
'id' => $customer_info['id'],
53+
'firstName' => $customer_info['firstName'],
54+
'lastName' => $customer_info['lastName'],
5755
'email' => $customer_info['email'],
5856
);
5957
}

0 commit comments

Comments
 (0)