We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3652f65 commit 9459469Copy full SHA for 9459469
1 file changed
src/service/middleware/post/encrypt.js
@@ -37,7 +37,8 @@ module.exports = class Encrypt extends IMiddleware {
37
const reply = new Message({msg: ctx.output})
38
const sender = Identity.fromString(senderStr)
39
40
- const payload = (await reply.encrypt(ctx.party.privateIdentity, sender.key)).toJSON()
+ await reply.encrypt(ctx.party.privateIdentity, sender.key)
41
+ const payload = reply.toJSON()
42
43
ctx.debug('setting payload', payload)
44
ctx.setOutput(payload)
0 commit comments