@ -26,8 +26,12 @@
});
db.createCollection('objects', function(err, _collection) {
db.createCollection('objects', function(err, collection) {
collection.ensureIndex({_key :1}, {background:true}, function(err, name){
if(err) {
winston.error("Error creating index " + err.message);
}
callback(err);
@ -350,7 +350,7 @@ var DebugRoute = function(app) {
isMemberOfSets
];
require('async').series(objectTasks, function(err, results) {
require('async').series(setTasks, function(err, results) {
console.log(err);
res.send(err.message);