mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
11 lines
396 B
CoffeeScript
11 lines
396 B
CoffeeScript
RedisManager = require "./RedisManager"
|
|
|
|
module.exports = DocOpsManager =
|
|
getPreviousDocOps: (project_id, doc_id, start, end, callback = (error, ops) ->) ->
|
|
RedisManager.getPreviousDocOps doc_id, start, end, (error, ops) ->
|
|
return callback(error) if error?
|
|
callback null, ops
|
|
|
|
pushDocOp: (project_id, doc_id, op, callback = (error) ->) ->
|
|
RedisManager.pushDocOp doc_id, op, callback
|
|
|