bug fix for clear archive in progress flag

This commit is contained in:
Brian Gough 2015-09-24 09:09:49 +01:00
parent 692e8c657c
commit e683b0275a

View file

@ -150,7 +150,7 @@ module.exports = MongoManager =
db.docHistory.update { _id: update._id }, { $set : { inS3 : false } }, callback
clearDocHistoryAsArchiveInProgress: (doc_id, update, callback) ->
db.docHistory.update { _id: update._id }, { $set : { inS3 : false } }, callback
db.docHistory.update { _id: update._id }, { $unset : { inS3 : true } }, callback
markDocHistoryAsArchived: (doc_id, update, callback)->
db.docHistory.update { _id: update._id }, { $set : { inS3 : true } }, (error)->