Merge tag 'v4.3.4' into develop

v4.3.4 v4.3.4
This commit is contained in:
Alexey Golubev
2017-05-15 16:48:18 +03:00
2 changed files with 7 additions and 4 deletions

View File

@ -1662,21 +1662,22 @@ exports.install = function(server, callbackFunction) {
data.isCloseCoAuthoring = edit.ds_isCloseCoAuthoring;
}
if (edit.user) {
var dataUser = data.user;
var user = edit.user;
if (null != user.id) {
data.id = user.id;
dataUser.id = user.id;
if (openCmd) {
openCmd.userid = user.id;
}
}
if (null != user.firstname) {
data.firstname = user.firstname;
dataUser.firstname = user.firstname;
}
if (null != user.lastname) {
data.lastname = user.lastname;
dataUser.lastname = user.lastname;
}
if (null != user.name) {
data.username = user.name;
dataUser.username = user.name;
}
}
}

View File

@ -43,6 +43,7 @@ const c_nCheckHealth = 60000, c_sCheckWord = 'color', c_sCheckLang = 1033;
let idCheckInterval, canStartCheck = true;
let statusCheckHealth = true;
function checkHealth (worker) {
logger.info('checkHealth');
if (!statusCheckHealth) {
logger.error('error check health, restart!');
worker.kill();
@ -52,6 +53,7 @@ function checkHealth (worker) {
statusCheckHealth = false;
}
function endCheckHealth (msg) {
logger.info('endCheckHealth');
statusCheckHealth = true;
}