mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Refactor components and styles.
This commit is contained in:
parent
c5599f1e20
commit
a2db27894f
16 changed files with 189 additions and 184 deletions
|
|
@ -18,13 +18,13 @@ export default async req => {
|
|||
const country = await getCountry(req, ip);
|
||||
|
||||
if (website_uuid) {
|
||||
const website = await getWebsite(website_uuid);
|
||||
const website = await getWebsite({ website_uuid });
|
||||
|
||||
if (website) {
|
||||
const { website_id } = website;
|
||||
const session_uuid = uuid(website_id, hostname, ip, userAgent, os);
|
||||
|
||||
let session = await getSession(session_uuid);
|
||||
let session = await getSession({ session_uuid });
|
||||
|
||||
if (!session) {
|
||||
session = await createSession(website_id, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue