From f5e8b4240c9aadd9f258d34a19bbbdfad006ffdc Mon Sep 17 00:00:00 2001 From: Bivekich Date: Tue, 15 Jul 2025 09:06:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=80=D0=B5=D0=B7=D0=BE=D0=BB=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1?= =?UTF-8?q?=D0=BE=D1=82=D0=BA=D0=B8=20=D0=B3=D1=80=D1=83=D0=BF=D0=BF=20?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=B0=D1=80=D0=BE=D0=B2.=20=D0=98=D0=B7?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D1=8B=20=D1=82=D0=B8=D0=BF=D1=8B?= =?UTF-8?q?=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9?= =?UTF-8?q?=20groupName=20=D0=BD=D0=B0=20string=20|=20null=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BF=D0=BE=D0=B2=D1=8B=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=81=D1=82=D1=80=D0=BE=D0=B3=D0=BE=D1=81=D1=82=D0=B8=20?= =?UTF-8?q?=D1=82=D0=B8=D0=BF=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B8.=20?= =?UTF-8?q?=D0=AD=D1=82=D0=BE=20=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20=D1=87=D0=B8=D1=82=D0=B0=D0=B5=D0=BC=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D0=B8=20=D0=BF=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=BE=D1=82=D0=B2=D1=80=D0=B0=D1=89=D0=B0=D0=B5=D1=82=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D1=8B=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=BF=D1=80=D0=B8=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B5=20=D1=81=20=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D0=BC=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/graphql/resolvers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/graphql/resolvers.ts b/src/lib/graphql/resolvers.ts index 7b4f632..bc470e4 100644 --- a/src/lib/graphql/resolvers.ts +++ b/src/lib/graphql/resolvers.ts @@ -1913,7 +1913,7 @@ export const resolvers = { const catalogs = await partsIndexService.getCatalogs('ru') const catalog = catalogs.find(c => c.id === category.partsIndexCatalogId) - let groupName = null + let groupName: string | null = null // Если есть groupId, получаем группы if (category.partsIndexGroupId && catalog) { @@ -1961,7 +1961,7 @@ export const resolvers = { const catalogs = await partsIndexService.getCatalogs('ru') const catalog = catalogs.find(c => c.id === category.partsIndexCatalogId) - let groupName = null + let groupName: string | null = null if (category.partsIndexGroupId && catalog) { const groups = await partsIndexService.getCatalogGroups(category.partsIndexCatalogId, 'ru') @@ -4687,7 +4687,7 @@ export const resolvers = { const catalogs = await partsIndexService.getCatalogs('ru') const catalog = catalogs.find(c => c.id === category.partsIndexCatalogId) - let groupName = null + let groupName: string | null = null if (category.partsIndexGroupId && catalog) { const groups = await partsIndexService.getCatalogGroups(category.partsIndexCatalogId, 'ru') const group = groups.find(g => g.id === category.partsIndexGroupId) @@ -4782,7 +4782,7 @@ export const resolvers = { const catalogs = await partsIndexService.getCatalogs('ru') const catalog = catalogs.find(c => c.id === category.partsIndexCatalogId) - let groupName = null + let groupName: string | null = null if (category.partsIndexGroupId && catalog) { const groups = await partsIndexService.getCatalogGroups(category.partsIndexCatalogId, 'ru') const group = groups.find(g => g.id === category.partsIndexGroupId)