expire invite on existing user

This commit is contained in:
Garrett Mills 2019-06-24 11:47:42 -05:00
parent b8a648d931
commit 5af35f1b34

View File

@ -101,6 +101,8 @@ class v1 {
project.shared_user_ids.push(req.session.auth.uuid)
await project.save()
}
invite.used = true
await invite.save()
return res.redirect('/dash/v1')
}
else {