DiffManager.coffee 230 B

12345678
  1. module.exports = DiffManager =
  2. getDiff: (doc_id, fromDate, toDate, callback = (error, diff) ->) ->
  3. # Flush diff
  4. # Get doc content and version
  5. # Get updates from Mongo
  6. # Check version matches
  7. # Build diff
  8. # Return diff