Feat/um 197 hook up teams (#1825)

* Link up teams UI.

* Fix auth order.

* PR touchups.
This commit is contained in:
Brian Cao
2023-03-09 12:42:12 -08:00
committed by GitHub
parent f908476e71
commit 8a9532f213
17 changed files with 500 additions and 111 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);
}