mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +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
|
|
@ -3,6 +3,7 @@ import clickhouse from 'lib/clickhouse';
|
|||
import { CLICKHOUSE, PRISMA, runQuery } from 'lib/db';
|
||||
import prisma from 'lib/prisma';
|
||||
import { WebsiteEventDataMetric } from 'lib/types';
|
||||
import { getWebsite } from 'queries';
|
||||
|
||||
export async function getEventData(
|
||||
...args: [
|
||||
|
|
@ -48,7 +49,7 @@ async function relationalQuery(
|
|||
) {
|
||||
const { startDate, endDate, timeSeries, eventName, urlPath, filters } = data;
|
||||
const { toUuid, rawQuery, getEventDataFilterQuery, getDateQuery } = prisma;
|
||||
const website = await cache.fetchWebsite(websiteId);
|
||||
const website = await getWebsite({ id: websiteId });
|
||||
const resetDate = website?.resetAt || website?.createdAt;
|
||||
const params: any = [websiteId, resetDate, startDate, endDate, eventName || ''];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue