From 3f6bf8ad5005a34224be924973d312ed492e209e Mon Sep 17 00:00:00 2001 From: "gorbenko.pavel" Date: Wed, 9 Sep 2026 11:54:01 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20=D1=83=D0=B1=D0=B8=D1=80=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20=D0=BD=D0=B5=D0=B4=D0=B5=D0=B9=D1=81=D1=82=D0=B2=D1=83?= =?UTF-8?q?=D1=8E=D1=89=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B8=D0=B7=20=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BE=D1=87=D0=BD=D0=B8=D0=BA=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit СЛМ (CL MANAGEMENT), Selin Invest, ОСН Беркут, ТехЛаб и Seline Holding Ltd по сути не действуют — фильтруем их по Id при получении справочника компаний из api.tnsu.kz, чтобы они не появлялись в выпадающем списке формы. Co-Authored-By: Claude Opus 5 --- server/src/companies.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/server/src/companies.ts b/server/src/companies.ts index ecc51b5..1c2dd7d 100644 --- a/server/src/companies.ts +++ b/server/src/companies.ts @@ -11,6 +11,19 @@ export interface ICompany { Name: string; } +/** + * Компании из справочника, которые по сути не действуют и не должны попадать + * в форму (просьба HR, 2026-09-09): СЛМ (CL MANAGEMENT), Selin Invest, + * ОСН Беркут, ТехЛаб, Seline Holding Ltd. + */ +const EXCLUDED_COMPANY_IDS = new Set([ + '9de064a4-44c8-88ef-11ec-831c058b1141', // ТОО CL MANAGEMENT (СЛМ) + '15009595-005d-00fa-11ef-11309f5e395d', // ТОО Selin Invest + '8028beac-ac23-8fd8-11f0-5351706e5996', // ТОО ОСН Беркут + '15009595-005d-00fa-11ef-1131801d9f3e', // ТОО ТехЛаб + '03f4deac-f543-e8cf-11f1-84f51483f59e' // Частная компания Seline Holding Ltd +]); + let cached: { companies: ICompany[]; expiresAt: number } | null = null; export async function getCompanies(): Promise { @@ -29,7 +42,8 @@ export async function getCompanies(): Promise { ); } - const companies = (await response.json()) as ICompany[]; + const allCompanies = (await response.json()) as ICompany[]; + const companies = allCompanies.filter((company) => !EXCLUDED_COMPANY_IDS.has(company.Id)); cached = { companies, expiresAt: Date.now() + CACHE_TTL_MS }; return companies; } -- 2.34.1