From b2480b8aac456d4238ed4261a031caab02a6d5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 15 Jun 2026 11:09:44 +0400 Subject: [PATCH] =?UTF-8?q?v0.6.16:=20req.clientId=20=3D=20activeClientId?= =?UTF-8?q?=20=E2=80=94=20=D0=B1=D0=B5=D0=B7=20=D1=83=D1=81=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=D0=B8=D0=B9,=20CRUD=20=D0=BD=D0=B5=20=D0=B7=D0=BD=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=20=D0=BF=D1=80=D0=BE=20=D0=B8=D0=BC=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D1=81=D0=BE=D0=BD=D0=B0=D1=86=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/src/config/index.js | 2 +- v2/src/router/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 25306f1..6587d3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.6.15", + "version": "0.6.16", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/config/index.js b/v2/src/config/index.js index e3e75fc..c785e6e 100644 --- a/v2/src/config/index.js +++ b/v2/src/config/index.js @@ -9,7 +9,7 @@ // ═══════════════════════════════════════════════════════════════════════════════ module.exports = { - version: '0.6.15', + version: '0.6.16', // ── IAM ────────────────────────────────────────────────────────────────── iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user', diff --git a/v2/src/router/index.js b/v2/src/router/index.js index 779dd05..782c143 100644 --- a/v2/src/router/index.js +++ b/v2/src/router/index.js @@ -54,7 +54,7 @@ function resolveContext(req, res, next) { // req.email = ТЕКУЩИЙ юзер (имперсонированный или реальный) req.email = email; - req.clientId = isImpersonated ? (activeClientId || impersonatedCompanyId || clientId) : (activeClientId || clientId); + req.clientId = activeClientId || clientId; if (!req.clientId) return res.status(400).send( '

Ошибка

Не удалось определить W-номер компании.

' + '

req.clientId: «' + String(req.clientId) + '» (type: ' + typeof req.clientId + ', len: ' + String(req.clientId).length + ')

' +