From e88d5e9c3b1cfa138e9f47b6026e5ffe97404aea Mon Sep 17 00:00:00 2001 From: Rushdi Date: Thu, 9 Jun 2022 01:28:17 +0530 Subject: [PATCH] Add traccar configuration on p2.inf and updated mysql.sql --- .../api/service/addons/TraccarClientImpl.java | 19 +++++++----- .../main/resources/dbscripts/cdm/mysql.sql | 29 +++++++++++++++++++ .../src/main/resources/p2.inf | 1 + 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/addons/TraccarClientImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/addons/TraccarClientImpl.java index 53350753179..74fedd5dc78 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/addons/TraccarClientImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/traccar/api/service/addons/TraccarClientImpl.java @@ -158,13 +158,16 @@ public class TraccarClientImpl implements TraccarClient { String allUsers = fetchAllUsers(); //get all users JSONArray fetchAllUsers = new JSONArray(allUsers); //loop users for(int i=0; i