mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Fixed website create.
This commit is contained in:
parent
3b705e6cb4
commit
8a74138e17
3 changed files with 6 additions and 3 deletions
|
|
@ -7,7 +7,10 @@ export default async (req, res) => {
|
|||
await useCors(req, res);
|
||||
await useAuth(req, res);
|
||||
|
||||
const { userId, isAdmin } = req.auth;
|
||||
const {
|
||||
user: { id: userId },
|
||||
isAdmin,
|
||||
} = req.auth;
|
||||
|
||||
if (req.method === 'GET') {
|
||||
const { include_all } = req.query;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue