From c5dfa15096e80c030ecc45abef798b74c7676f72 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 9 Mar 2024 21:18:03 +0800 Subject: [PATCH] fix: fix telemetry session query failed problem --- src/server/utils/prisma.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/utils/prisma.ts b/src/server/utils/prisma.ts index 0aab955..8ea04ae 100644 --- a/src/server/utils/prisma.ts +++ b/src/server/utils/prisma.ts @@ -100,7 +100,7 @@ export async function parseTelemetryFilters( typeof value !== 'undefined' && SESSION_COLUMNS.includes(key) ) ? Prisma.sql([ - `inner join "WebsiteSession" on "WebsiteEvent"."sessionId" = "WebsiteSession"."id"`, + `inner join "TelemetrySession" on "TelemetryEvent"."sessionId" = "TelemetrySession"."id"`, ]) : Prisma.empty, filterQuery: getTelemetryFilterQuery(filters, options),