Skip to content

Commit 09502dd

Browse files
committed
str to obj
1 parent 636b0af commit 09502dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/comms/rest-comms.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ class RestComms extends EventEmitter {
132132

133133
let reply
134134
try {
135-
const str = await RestComms.HttpPost(fullPath, content)
136-
reply = JSON.parse(str)
135+
reply = await RestComms.HttpPost(fullPath, content)
136+
//reply = JSON.parse(str)
137137

138138
// debug('raw reply ->', reply)
139139
} catch (error) {
@@ -203,7 +203,7 @@ class RestComms extends EventEmitter {
203203
const serverIdentity = await RestComms.HttpGet(this.uri + `${this.uriPrefix}identity`)
204204
debug('server identity - ', serverIdentity)
205205

206-
this.remoteIdentity = dataparty_crypto.Identity.fromString(serverIdentity)
206+
this.remoteIdentity = new dataparty_crypto.Identity(serverIdentity)
207207
}
208208

209209
return this.remoteIdentity

0 commit comments

Comments
 (0)