fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject fineract git commit: SSU device regration API is falinging
Date Fri, 01 Dec 2017 09:05:11 GMT
Repository: fineract
Updated Branches:
  refs/heads/develop c689c143e -> a42f9d526


SSU device regration API is falinging


Project: http://git-wip-us.apache.org/repos/asf/fineract/repo
Commit: http://git-wip-us.apache.org/repos/asf/fineract/commit/a42f9d52
Tree: http://git-wip-us.apache.org/repos/asf/fineract/tree/a42f9d52
Diff: http://git-wip-us.apache.org/repos/asf/fineract/diff/a42f9d52

Branch: refs/heads/develop
Commit: a42f9d526816c575a09466f71e2105fe931eba9a
Parents: c689c14
Author: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Authored: Fri Dec 1 14:34:10 2017 +0530
Committer: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Committed: Fri Dec 1 14:34:10 2017 +0530

----------------------------------------------------------------------
 .../infrastructure/gcm/api/DeviceRegistrationApiResource.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/fineract/blob/a42f9d52/fineract-provider/src/main/java/org/apache/fineract/infrastructure/gcm/api/DeviceRegistrationApiResource.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/gcm/api/DeviceRegistrationApiResource.java
b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/gcm/api/DeviceRegistrationApiResource.java
index 1ba0fa7..31129d9 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/gcm/api/DeviceRegistrationApiResource.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/gcm/api/DeviceRegistrationApiResource.java
@@ -46,7 +46,7 @@ import org.springframework.stereotype.Component;
 import com.google.gson.Gson;
 import com.google.gson.JsonObject;
 
-@Path("/device/registration")
+@Path("/self/device/registration")
 @Component
 @Scope("singleton")
 public class DeviceRegistrationApiResource {
@@ -77,7 +77,7 @@ public class DeviceRegistrationApiResource {
         Long clientId = json.get(DeviceRegistrationApiConstants.clientIdParamName).getAsLong();
         String registrationId = json.get(DeviceRegistrationApiConstants.registrationIdParamName).getAsString();
         DeviceRegistration deviceRegistration = this.deviceRegistrationWritePlatformService.registerDevice(clientId,
registrationId);
-        String response = gson.toJson(deviceRegistration);
+        String response = gson.toJson(deviceRegistration.getId());
         return response;
     }
 


Mime
View raw message