mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Increase max op age to 80
This commit is contained in:
@@ -11,10 +11,12 @@ WebRedisManager = require "./WebRedisManager"
|
||||
ShareJsModel:: = {}
|
||||
util.inherits ShareJsModel, EventEmitter
|
||||
|
||||
MAX_AGE_OF_OP = 80
|
||||
|
||||
module.exports = ShareJsUpdateManager =
|
||||
getNewShareJsModel: (project_id, doc_id, lines, version) ->
|
||||
db = new ShareJsDB(project_id, doc_id, lines, version)
|
||||
model = new ShareJsModel(db, maxDocLength: Settings.max_doc_length)
|
||||
model = new ShareJsModel(db, maxDocLength: Settings.max_doc_length, maximumAge: MAX_AGE_OF_OP)
|
||||
model.db = db
|
||||
return model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user