From 0a4ea563d99815d496c5ec30648d2508c5f20d1c Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Mon, 7 Oct 2024 08:11:29 +0800 Subject: [PATCH] Fix response format of loyalty registration to remove unnecessary array #809 --- src/Controller/CustomerAppAPI/LoyaltyController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Controller/CustomerAppAPI/LoyaltyController.php b/src/Controller/CustomerAppAPI/LoyaltyController.php index 6b58ed2a..30f97562 100644 --- a/src/Controller/CustomerAppAPI/LoyaltyController.php +++ b/src/Controller/CustomerAppAPI/LoyaltyController.php @@ -24,8 +24,6 @@ class LoyaltyController extends ApiController } // response - return new ApiResponse(true, '', [ - $result['response']['data'], - ]); + return new ApiResponse(true, '', $result['response']['data']); } }