From 6a371c267fb5b09c66e36e44e0ac8b0b5959d654 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 16 May 2014 16:41:40 +0100 Subject: [PATCH] Fix indexes --- services/track-changes/app/coffee/MongoManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/track-changes/app/coffee/MongoManager.coffee b/services/track-changes/app/coffee/MongoManager.coffee index 536bf77168..5bcca5d467 100644 --- a/services/track-changes/app/coffee/MongoManager.coffee +++ b/services/track-changes/app/coffee/MongoManager.coffee @@ -124,4 +124,4 @@ module.exports = MongoManager = # For finding project meta-data db.projectHistoryMetaData.ensureIndex { project_id: 1 } # TTL index for auto deleting week old temporary ops - db.docHistory.ensureIndex { tempCreatedAt: 1 }, { expireAfterSeconds: 0 } + db.docHistory.ensureIndex { expiresAt: 1 }, { expireAfterSeconds: 0 }