mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +01:00
fixed relational query to get reset_at
This commit is contained in:
parent
cb79d806e8
commit
fbe35f4c97
6 changed files with 12 additions and 6 deletions
|
|
@ -4,6 +4,7 @@ import { runQuery, CLICKHOUSE, PRISMA } from 'lib/db';
|
|||
import cache from 'lib/cache';
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { EVENT_TYPE } from 'lib/constants';
|
||||
import { getWebsite } from 'queries';
|
||||
|
||||
export async function getPageviewMetrics(
|
||||
...args: [
|
||||
|
|
@ -35,7 +36,7 @@ async function relationalQuery(
|
|||
) {
|
||||
const { startDate, endDate, column, filters = {}, type } = data;
|
||||
const { rawQuery, parseFilters, toUuid } = prisma;
|
||||
const website = await cache.fetchWebsite(websiteId);
|
||||
const website = await getWebsite({ id: websiteId });
|
||||
const resetDate = website?.resetAt || website?.createdAt;
|
||||
const params: any = [
|
||||
websiteId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue