try/catch getting the clickhouse client

This commit is contained in:
Matt Aitken
2026-04-17 12:17:56 +01:00
parent 20fad45651
commit 5aff3ed0f0
@@ -102,9 +102,13 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => {
});
}
const clickhouse = await clickhouseFactory.getClickhouseForOrganization(project.organizationId, "standard");
const presenter = new TestTaskPresenter($replica, clickhouse);
try {
const clickhouse = await clickhouseFactory.getClickhouseForOrganization(
project.organizationId,
"standard"
);
const presenter = new TestTaskPresenter($replica, clickhouse);
const [result, regionsResult] = await Promise.all([
presenter.call({
userId: user.id,