send preimage for sendpayment action

This commit is contained in:
Daniel Lugo 2020-04-03 16:25:02 -04:00
parent d89b128428
commit 36b07e87a4

View file

@ -776,11 +776,11 @@ class Mediator {
await throwOnInvalidToken(token)
await API.Actions.sendPayment(recipientPub, amount, memo)
const preimage = await API.Actions.sendPayment(recipientPub, amount, memo)
this.socket.emit(Action.SEND_PAYMENT, {
ok: true,
msg: null,
msg: preimage,
origBody: reqBody
})
} catch (err) {