[feature] Add customer_id info to index.html

This commit is contained in:
Sergey Konovalov
2021-11-22 17:26:54 +03:00
parent 7bf8d76168
commit a822cf0abb
2 changed files with 5 additions and 4 deletions

View File

@ -53,7 +53,8 @@ exports.readLicense = function*() {
hasLicense: false,
plugins: false,
buildDate: oBuildDate,
endDate: null
endDate: null,
customerId: ""
}, null];
};

View File

@ -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(