Quellcode durchsuchen

bug fix for clear archive in progress flag

Brian Gough vor 11 Jahren
Ursprung
Commit
e683b0275a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      services/track-changes/app/coffee/MongoManager.coffee

+ 1 - 1
services/track-changes/app/coffee/MongoManager.coffee

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