skip ops marked as broken in database

This commit is contained in:
Brian Gough 2015-12-09 15:13:37 +00:00
parent 2a7c33d7ca
commit 54d1036e37

View file

@ -11,7 +11,7 @@ module.exports = DiffGenerator =
ConsistencyError: ConsistencyError
rewindUpdate: (content, update) ->
for op, i in update.op by -1
for op, i in update.op by -1 when op.broken isnt true
try
content = DiffGenerator.rewindOp content, op
catch e