tell client invite is spent
This commit is contained in:
parent
e20cacf40c
commit
add1a392cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue