Add teams to a user when they are created

This commit is contained in:
Alex Holliday committed 2024-08-26 13:29:11 -07:00
1 parent a6f5c96f93
commit c39eab49bd
8 files changed
+26 -8

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ const insertUser = async (req, res) => {
});
teamId = team._id;
await team.save();
} else {
teamId = userData.teamId;
}
const newUser = new UserModel(userData);