File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.logs Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,9 @@ import { z } from "zod";
22import { type ClickHouse , type LogsListResult } from "@internal/clickhouse" ;
33import { MachinePresetName } from "@trigger.dev/core/v3" ;
44import {
5- type PrismaClient ,
65 type PrismaClientOrTransaction ,
76 type TaskRunStatus ,
87 TaskRunStatus as TaskRunStatusEnum ,
9- TaskTriggerSource ,
108} from "@trigger.dev/database" ;
119import { getConfiguredEventRepository } from "~/v3/eventRepository/index.server" ;
1210
@@ -26,7 +24,6 @@ import {
2624 convertClickhouseDateTime64ToJsDate ,
2725} from "~/v3/eventRepository/clickhouseEventRepository.server" ;
2826
29-
3027export type { LogLevel } ;
3128
3229type ErrorAttributes = {
@@ -173,7 +170,7 @@ export class LogsListPresenter extends BasePresenter {
173170 private readonly replica : PrismaClientOrTransaction ,
174171 private readonly clickhouse : ClickHouse
175172 ) {
176- super ( ) ;
173+ super ( undefined , replica ) ;
177174 }
178175
179176 public async call (
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ async function hasLogsPageAccess(
9292 return hasLogsPageAccessResult . success && hasLogsPageAccessResult . data === true ;
9393}
9494
95-
9695export const loader = async ( { request, params } : LoaderFunctionArgs ) => {
9796 const user = await requireUser ( request ) ;
9897 const userId = user . id ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export async function getConfiguredEventRepository(
3838 } ) ;
3939
4040 if ( ! organization ) {
41- throw new Error ( ' Organization not found when configuring event repository' ) ;
41+ throw new Error ( " Organization not found when configuring event repository" ) ;
4242 }
4343
4444 // resolveTaskEventRepositoryFlag checks:
@@ -57,7 +57,7 @@ export async function getConfiguredEventRepository(
5757 return { repository : clickhouseEventRepository , store : "clickhouse" } ;
5858 }
5959
60- return { repository : eventRepository , store : ' postgres' } ;
60+ return { repository : eventRepository , store : " postgres" } ;
6161}
6262
6363export async function getEventRepository (
You can’t perform that action at this time.
0 commit comments