http method fix
This commit is contained in:
parent
fa92c325dd
commit
9dd77fe0bf
6 changed files with 13 additions and 5 deletions
|
|
@ -440,6 +440,7 @@ export default (params: NostrClientParams, send: (to:string, message: NostrRequ
|
|||
const auth = await params.retrieveNostrUserAuth()
|
||||
if (auth === null) throw new Error('retrieveNostrUserAuth() returned null')
|
||||
const nostrRequest: NostrRequest = {}
|
||||
nostrRequest.body = request
|
||||
const data = await send(params.pubDestination, {rpcName:'GetUserOffer',authIdentifier:auth, ...nostrRequest })
|
||||
if (data.status === 'ERROR' && typeof data.reason === 'string') return data
|
||||
if (data.status === 'OK') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue