Link up teams UI.

This commit is contained in:
Brian Cao 2023-03-08 22:48:20 -08:00
parent bb2cd93ad4
commit aa9ad5594c
18 changed files with 504 additions and 114 deletions

View file

@ -34,12 +34,14 @@ export default async (
const { name } = req.body;
const team = await createTeam({
id: uuid(),
name,
const team = await createTeam(
{
id: uuid(),
name,
accessCode: getRandomChars(16),
},
userId,
accessCode: getRandomChars(16),
});
);
return ok(res, team);
}