From b975ae0bc358f1caf2faeb37b8034d035241bd78 Mon Sep 17 00:00:00 2001 From: Yuri Yaryshev Date: Thu, 15 Oct 2026 22:01:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=BA=D0=B0=D0=BD=D0=B0=D0=BB=20=D0=B1=D0=B5?= =?UTF-8?q?=D0=B7=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0=20(jt=5Fjob?= =?UTF-8?q?=5Fid=20null)=20=D0=B0=D1=81=D1=81=D0=B8=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=BC=20=D0=BD=D0=B5=20=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- packages/khbuild_assistant_prep/src/slack/intake.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/khbuild_assistant_prep/src/slack/intake.ts b/packages/khbuild_assistant_prep/src/slack/intake.ts index ec7546b..45838b9 100644 --- a/packages/khbuild_assistant_prep/src/slack/intake.ts +++ b/packages/khbuild_assistant_prep/src/slack/intake.ts @@ -76,7 +76,7 @@ export class SlackIntake { /** Проектный канал: проект определяется каналом (таблица project_channel). */ async findProjectByChannel(channel: string): Promise<{ jobId: string; jobName: string | null } | null> { const { rows } = await this.pool.query( - "select pc.jt_job_id, j.name from project_channel pc left join jt_job j on j.id = pc.jt_job_id where pc.channel_id = $1 and pc.is_enabled", + "select pc.jt_job_id, j.name from project_channel pc left join jt_job j on j.id = pc.jt_job_id where pc.channel_id = $1 and pc.is_enabled and pc.jt_job_id is not null", [channel], ); return rows[0] ? { jobId: String(rows[0].jt_job_id), jobName: (rows[0].name as string | null) ?? null } : null;