fix: fix telemetry session query failed problem

This commit is contained in:
moonrailgun 2024-03-09 21:18:03 +08:00
parent f0a1ed3cdf
commit c5dfa15096

View File

@ -100,7 +100,7 @@ export async function parseTelemetryFilters(
typeof value !== 'undefined' && SESSION_COLUMNS.includes(key) typeof value !== 'undefined' && SESSION_COLUMNS.includes(key)
) )
? Prisma.sql([ ? Prisma.sql([
`inner join "WebsiteSession" on "WebsiteEvent"."sessionId" = "WebsiteSession"."id"`, `inner join "TelemetrySession" on "TelemetryEvent"."sessionId" = "TelemetrySession"."id"`,
]) ])
: Prisma.empty, : Prisma.empty,
filterQuery: getTelemetryFilterQuery(filters, options), filterQuery: getTelemetryFilterQuery(filters, options),