mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use projectStateUnchanged instead of stateOk
This commit is contained in:
parent
f44b844d74
commit
6d331e8ffd
1 changed files with 3 additions and 3 deletions
|
@ -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) ->
|
||||||
|
|
Loading…
Reference in a new issue