mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +01:00
Bug Fix
Fix 'Argument `websiteId` is missing'
This commit is contained in:
parent
a38baa50af
commit
b379834e5c
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
|||
}
|
||||
|
||||
const { type, payload } = req.body;
|
||||
const { url, referrer, name: eventName, data, title } = payload;
|
||||
const { url, referrer, name: eventName, data, title, website} = payload;
|
||||
const pageTitle = safeDecodeURI(title);
|
||||
|
||||
await useSession(req, res);
|
||||
|
|
@ -146,6 +146,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
|||
...session,
|
||||
sessionId: session.id,
|
||||
visitId: session.visitId,
|
||||
websiteId: session.websiteId || website,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue