Stringfy correctly the params sent to the api

This commit is contained in:
Angela Mazzurco 2017-07-18 16:36:54 +02:00
parent d64daa7d49
commit c0d00c8b7c

View File

@ -47,7 +47,7 @@ Item
var base64Image = androidImagePicker.imageToBase64(resultFile)
rsApi.request("/identity/set_avatar", {"gxs_id": cntDt.md.gxs_id, "avatar": base64Image },
rsApi.request("/identity/set_avatar", JSON.stringify({"gxs_id": cntDt.md.gxs_id, "avatar": base64Image }),
function (res){
console.log("Avatar changed! " , JSON.stringify(res))
}