Updated index for timeout-api and timing out connections, not cookies

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-28 12:36:42 +02:00
parent b792f48523
commit ea6ba9e1c1
2 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ var connected_db = mongojs('mongodb://' + mongo_config.host + '/user_credentials
var ObjectId = mongojs.ObjectId;
db.collection("chat_logs").createIndex({ "createdAt": 1 }, { expireAfterSeconds: 600 }, function(){});
db.collection("timeout_api").createIndex({ "createdAt": 1 }, { expireAfterSeconds: 5 }, function(){});
db.collection("timeout_api").createIndex({ "createdAt": 1 }, { expireAfterSeconds: 120 }, function(){});
db.collection("api_links").createIndex({ "createdAt": 1 }, { expireAfterSeconds: 86400 }, function(){});
db.on('connected', function(err) {
console.log("connected");