Update tests for gitlab

This commit is contained in:
Jonathan Cremin 2016-05-24 18:03:10 +01:00
parent b3479983aa
commit 13400ea4d3
5 changed files with 33 additions and 24 deletions

View file

@ -1,5 +1,12 @@
db.files.createIndex({
"owner": 1,
"status": 1,
"time_added": -1
const MongoClient = require('mongodb').MongoClient;
const url = 'mongodb://localhost:27017/hostr';
MongoClient.connect(url, function connect(err, db) {
const collection = db.collection('files');
collection.createIndex({
'owner': 1,
'status': 1,
'time_added': -1,
});
db.close();
});