Moved files, and shortened some

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-05 23:43:56 +01:00
parent 4bca663bb3
commit 62944eb976
6 changed files with 10 additions and 41 deletions

View File

@@ -7,7 +7,7 @@ try {
process.exit();
}
var mongojs = require('mongojs');
var db = mongojs(mongo_config.config);
var db = mongojs('mongodb://' + mongo_config.host + '/' + mongo_config.config);
db.collection("chat_logs").createIndex({ "createdAt": 1 }, { expireAfterSeconds: 600 });