Skip to content

Commit 9365f1b

Browse files
committed
try/catch getting the clickhouse client
1 parent e935041 commit 9365f1b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.test.tasks.$taskParam

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.test.tasks.$taskParam/route.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
102102
});
103103
}
104104

105-
const clickhouse = await clickhouseFactory.getClickhouseForOrganization(project.organizationId, "standard");
106-
const presenter = new TestTaskPresenter($replica, clickhouse);
107105
try {
106+
const clickhouse = await clickhouseFactory.getClickhouseForOrganization(
107+
project.organizationId,
108+
"standard"
109+
);
110+
const presenter = new TestTaskPresenter($replica, clickhouse);
111+
108112
const [result, regionsResult] = await Promise.all([
109113
presenter.call({
110114
userId: user.id,

0 commit comments

Comments
 (0)