Fix response to get locations. #632

This commit is contained in:
Korina Cordero 2021-10-27 07:27:15 +00:00
parent 3f7075f26d
commit e4e412fd14

View file

@ -3678,7 +3678,7 @@ class APIController extends Controller implements LoggedController
$cust_meta = $em->getRepository(CustomerMetadata::class)->findOneBy(['customer' => $cust]); $cust_meta = $em->getRepository(CustomerMetadata::class)->findOneBy(['customer' => $cust]);
if ($cust_meta != null) if ($cust_meta != null)
{ {
$locations[] = $cust_meta->getAllMetaInfo(); $locations = $cust_meta->getAllMetaInfo();
} }
$data = [ $data = [