Fix get locations response. #632

This commit is contained in:
Korina Cordero 2021-10-27 09:39:28 +00:00
parent 84844046f1
commit 7001d6a0ed

View file

@ -3686,7 +3686,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 = [