mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
Feat/um 197 hook up teams (#1825)
* Link up teams UI. * Fix auth order. * PR touchups.
This commit is contained in:
parent
f908476e71
commit
8a9532f213
17 changed files with 500 additions and 111 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