Feat/um 197 hook up teams (#1825)
* Link up teams UI. * Fix auth order. * PR touchups.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user