fix: only send required info for toggling a relay
This commit is contained in:
parent
3fe4984026
commit
cab870f6ff
1 changed files with 6 additions and 2 deletions
|
|
@ -141,11 +141,15 @@ const relays = async () => {
|
|||
toggleRelay: async function (relay) {
|
||||
console.log('### toggleRelay', relay)
|
||||
try {
|
||||
const response = await LNbits.api.request(
|
||||
await LNbits.api.request(
|
||||
'PUT',
|
||||
'/nostrrelay/api/v1/relay/' + relay.id,
|
||||
this.g.user.wallets[0].adminkey,
|
||||
relay
|
||||
{
|
||||
active: relay.active,
|
||||
id: relay.id,
|
||||
name: relay.name
|
||||
}
|
||||
)
|
||||
} catch (error) {
|
||||
LNbits.utils.notifyApiError(error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue