mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 04:55:36 +01:00
Link up teams UI.
This commit is contained in:
parent
bb2cd93ad4
commit
aa9ad5594c
18 changed files with 504 additions and 114 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue