Skip to content

Commit 9459469

Browse files
committed
reply payload
1 parent 3652f65 commit 9459469

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/service/middleware/post/encrypt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ module.exports = class Encrypt extends IMiddleware {
3737
const reply = new Message({msg: ctx.output})
3838
const sender = Identity.fromString(senderStr)
3939

40-
const payload = (await reply.encrypt(ctx.party.privateIdentity, sender.key)).toJSON()
40+
await reply.encrypt(ctx.party.privateIdentity, sender.key)
41+
const payload = reply.toJSON()
4142

4243
ctx.debug('setting payload', payload)
4344
ctx.setOutput(payload)

0 commit comments

Comments
 (0)