fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject fineract git commit: Changing device regration API to return id instead of entity
Date Mon, 11 Dec 2017 07:47:07 GMT
Repository: fineract
Updated Branches:
  refs/heads/develop 84927eb5b -> a9a29e51c


Changing device regration API to return id instead of entity


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

Branch: refs/heads/develop
Commit: a9a29e51c15aca621d1b9527dab835d46b736048
Parents: 84927eb
Author: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Authored: Mon Dec 11 13:16:11 2017 +0530
Committer: Nazeer Hussain Shaik <nazeer.shaik@confluxtechnologies.com>
Committed: Mon Dec 11 13:16:11 2017 +0530

----------------------------------------------------------------------
 .../infrastructure/gcm/api/DeviceRegistrationApiResource.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/fineract/blob/a9a29e51/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 31129d9..45332de 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
@@ -135,7 +135,7 @@ public class DeviceRegistrationApiResource {
         String registrationId = json.get(DeviceRegistrationApiConstants.registrationIdParamName).getAsString();
         DeviceRegistration deviceRegistration = this.deviceRegistrationWritePlatformService.updateDeviceRegistration(id,
clientId,
                 registrationId);
-        String response = gson.toJson(deviceRegistration);
+        String response = gson.toJson(deviceRegistration.getId());
         return response;
     }
 


Mime
View raw message