From 5af35f1b34e6319f63184e49c000bc5e2c108d1d Mon Sep 17 00:00:00 2001 From: Garrett Mills Date: Mon, 24 Jun 2019 11:47:42 -0500 Subject: [PATCH] expire invite on existing user --- app/controllers/api/v1.controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/v1.controller.js b/app/controllers/api/v1.controller.js index 9fb37cc..ca5ca25 100644 --- a/app/controllers/api/v1.controller.js +++ b/app/controllers/api/v1.controller.js @@ -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 {