mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +01:00
select only session id
This commit is contained in:
parent
f8ac987bfc
commit
541b103338
2 changed files with 15 additions and 2 deletions
|
|
@ -182,6 +182,19 @@ export async function getSessionByUuid(session_uuid) {
|
|||
);
|
||||
}
|
||||
|
||||
export async function getSessionIDByUuid(session_uuid) {
|
||||
return runQuery(
|
||||
prisma.session.findUnique({
|
||||
where: {
|
||||
session_uuid,
|
||||
},
|
||||
select: {
|
||||
session_id: true,
|
||||
}
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
export async function savePageView(website_id, session_id, url, referrer) {
|
||||
return runQuery(
|
||||
prisma.pageview.create({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue