⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(web): treat missing Telegram integration as empty state
Tin0cfd56c44e77
diff --git a/apps/api/src/telegram-integration/index.ts b/apps/api/src/telegram-integration/index.tsindex 73f3d2368..4fdb86a9b 100644--- a/apps/api/src/telegram-integration/index.ts+++ b/apps/api/src/telegram-integration/index.ts@@ -75,11 +75,6 @@ telegramIntegrationasync (c) => {const { projectId } = c.req.valid("param");const integration = await getTelegramIntegration(projectId);- if (!integration) {- throw new HTTPException(404, {- message: "Telegram integration not found",- });- }return c.json(integration);},)diff --git a/apps/web/src/fetchers/telegram-integration/get-telegram-integration.ts b/apps/web/src/fetchers/telegram-integration/get-telegram-integration.tsindex ea1bd19ff..8a30acf58 100644--- a/apps/web/src/fetchers/telegram-integration/get-telegram-integration.ts+++ b/apps/web/src/fetchers/telegram-integration/get-telegram-integration.ts@@ -29,6 +29,10 @@ async function getTelegramIntegration(projectId: string) {},);+ if (response.status === 404) {+ return null;+ }+if (!response.ok) {const error = await response.text();throw new Error(error);