change key on PUT request

This commit is contained in:
Tiago vasconcelos 2022-03-18 20:58:47 +00:00
parent 0f97f8f18b
commit c59d0a51ff

View file

@ -621,7 +621,7 @@ new Vue({
if (!newName || !newName.length) return
// let data = {name: newName}
LNbits.api
.request('PUT', '/api/v1/wallet/' + newName, this.g.wallet.inkey, {})
.request('PUT', '/api/v1/wallet/' + newName, this.g.wallet.adminkey, {})
.then(res => {
this.newName = ''
this.$q.notify({