From a822cf0abb5eb54f5e8d996bba0e53d9f4764a41 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Mon, 22 Nov 2021 17:26:54 +0300 Subject: [PATCH] [feature] Add customer_id info to index.html --- Common/sources/license.js | 3 ++- DocService/sources/server.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Common/sources/license.js b/Common/sources/license.js index c651c605..b70fad45 100644 --- a/Common/sources/license.js +++ b/Common/sources/license.js @@ -53,7 +53,8 @@ exports.readLicense = function*() { hasLicense: false, plugins: false, buildDate: oBuildDate, - endDate: null + endDate: null, + customerId: "" }, null]; }; diff --git a/DocService/sources/server.js b/DocService/sources/server.js index e95ab257..3ca3b5d3 100644 --- a/DocService/sources/server.js +++ b/DocService/sources/server.js @@ -152,14 +152,14 @@ docsCoServer.install(server, () => { app.get('/index.html', (req, res) => { let buildVersion = commonDefines.buildVersion; let buildNumber = commonDefines.buildNumber; - let buildDate, packageType, mode = ""; + let buildDate, packageType, customerId = ""; if (licenseInfo) { buildDate = licenseInfo.buildDate.toISOString(); packageType = licenseInfo.packageType; - mode = licenseInfo.mode; + customerId = licenseInfo.customerId; } let output = `Server is functioning normally. Version: ${buildVersion}. Build: ${buildNumber}`; - output += `. Release date: ${buildDate}. Package type: ${packageType}. Mode: ${mode}`; + output += `. Release date: ${buildDate}. Package type: ${packageType}. Customer Id: ${customerId}`; res.send(output); }); const rawFileParser = bodyParser.raw(