tell client invite is spent

This commit is contained in:
counterweight 2025-02-09 23:42:14 +01:00
parent e20cacf40c
commit add1a392cd
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -61,7 +61,7 @@ router.post('/invited-npub', async (req, res) => {
}) })
if (isInviteSpent) { if (isInviteSpent) {
return res.render('invite_spent', { invite }) return res.status(410).json({ error: 'Invite has already been used.' });
} }
await InvitedNpub.create({ await InvitedNpub.create({