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