Add teams to a user when they are created

This commit is contained in:
Alex Holliday
2024-08-26 13:29:11 -07:00
parent a6f5c96f93
commit c39eab49bd
8 changed files with 26 additions and 8 deletions
+1
View File
@@ -8,6 +8,7 @@ const requestInviteToken = async (req, res) => {
let inviteToken = new InviteToken({
email: req.body.email,
role: req.body.role,
teamId: req.body.teamId,
token: crypto.randomBytes(32).toString("hex"),
});
await inviteToken.save();