mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-06 16:49:24 -05:00
Add teams to a user when they are created
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user