From ed915c87b1b3106b3b3f932b03a40e69a5e55fa7 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Tue, 3 Jan 2017 17:43:32 +0100
Subject: [PATCH] Fix profile update rest action

---
 .../org/duniter/elasticsearch/user/service/UserService.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/duniter4j-es-user/src/main/java/org/duniter/elasticsearch/user/service/UserService.java b/duniter4j-es-user/src/main/java/org/duniter/elasticsearch/user/service/UserService.java
index ed587e26..cc25ccf0 100644
--- a/duniter4j-es-user/src/main/java/org/duniter/elasticsearch/user/service/UserService.java
+++ b/duniter4j-es-user/src/main/java/org/duniter/elasticsearch/user/service/UserService.java
@@ -139,7 +139,7 @@ public class UserService extends AbstractService {
      * Update an user profile
      * @param profileJson
      */
-    public ListenableActionFuture<UpdateResponse> updateProfileFromJson(String profileJson, String id) {
+    public ListenableActionFuture<UpdateResponse> updateProfileFromJson(String id, String profileJson) {
 
         JsonNode actualObj = readAndVerifyIssuerSignature(profileJson);
         String issuer = getIssuer(actualObj);
-- 
GitLab