always use the new id

This commit is contained in:
boufni95 2023-10-27 20:05:25 +02:00
parent 960e928cbc
commit c7303ca5dd
6 changed files with 2094 additions and 2096 deletions

View file

@ -208,7 +208,7 @@ export default (params: NostrClientParams, send: (to:string, message: NostrRequ
if (data.status === 'ERROR' && typeof data.reason === 'string') return cb(data)
if (data.status === 'OK') {
const result = data
if(!params.checkResult) return { status: 'OK', ...result }
if(!params.checkResult) return cb({ status: 'OK', ...result })
const error = Types.LiveUserOperationValidate(result)
if (error === null) { return cb({ status: 'OK', ...result }) } else return cb({ status: 'ERROR', reason: error.message })
}