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