use projectStateUnchanged instead of stateOk

This commit is contained in:
Brian Gough 2017-08-03 12:10:23 +01:00
parent f44b844d74
commit 6d331e8ffd

View file

@ -123,11 +123,11 @@ module.exports = ClsiManager =
if project.compiler not in ClsiManager.VALID_COMPILERS if project.compiler not in ClsiManager.VALID_COMPILERS
project.compiler = "pdflatex" project.compiler = "pdflatex"
ClsiStateManager.checkProjectStateMatch project_id, project, (error, stateOk, projectStateHash) -> ClsiStateManager.checkProjectStateMatch project_id, project, (error, projectStateUnchanged, projectStateHash) ->
return callback(error) if error? return callback(error) if error?
logger.log project_id: project_id, checkState: stateOk, "checked project state" logger.log project_id: project_id, projectStateUnchanged: projectStateUnchanged, "checked project state"
# see if we can send an incremental update to the CLSI # see if we can send an incremental update to the CLSI
if stateOk and options.syncType isnt "full" if projectStateUnchanged and options.syncType isnt "full"
ClsiManager._getContentFromDocUpdater project_id, (error, docUpdaterDocs) -> ClsiManager._getContentFromDocUpdater project_id, (error, docUpdaterDocs) ->
return callback(error) if error? return callback(error) if error?
ProjectEntityHandler.getAllDocPathsFromProject project, (error, docPath) -> ProjectEntityHandler.getAllDocPathsFromProject project, (error, docPath) ->