mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Fixed label display on metrics. Removed compare for all time.
This commit is contained in:
parent
cfe2389b8e
commit
7b0b11ffaa
8 changed files with 23 additions and 18 deletions
|
|
@ -3,7 +3,7 @@ import { Website, Session } from '@prisma/client';
|
|||
import redis from '@umami/redis-client';
|
||||
|
||||
export async function fetchWebsite(websiteId: string): Promise<Website> {
|
||||
let website;
|
||||
let website = null;
|
||||
|
||||
if (redis.enabled) {
|
||||
website = await redis.client.fetch(`website:${websiteId}`, () => getWebsite(websiteId), 86400);
|
||||
|
|
@ -19,7 +19,7 @@ export async function fetchWebsite(websiteId: string): Promise<Website> {
|
|||
}
|
||||
|
||||
export async function fetchSession(sessionId: string): Promise<Session> {
|
||||
let session;
|
||||
let session = null;
|
||||
|
||||
if (redis.enabled) {
|
||||
session = await redis.client.fetch(`session:${sessionId}`, () => getSession(sessionId), 86400);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue