mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: get lock pubkey from nutzap info
This commit is contained in:
parent
51faffc9e2
commit
e08603a42a
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ route.post('/nutzap', userMiddleware({ enc: 'nip44' }), async (c) => {
|
|||
return c.json({ error: 'Target user does not have any mints setup' }, 422);
|
||||
}
|
||||
|
||||
const p2pk = event.tags.find(([name]) => name === 'pubkey')?.[1];
|
||||
const p2pk = nutzapInfo.tags.find(([name]) => name === 'pubkey')?.[1];
|
||||
if (!p2pk) {
|
||||
return c.json({ error: 'Target user does not have a cashu pubkey' }, 422);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue