minor fix

This commit is contained in:
Baris Soner Usakli
2014-01-05 18:30:14 -05:00
parent 4923c79496
commit cd6750a38d
2 changed files with 5 additions and 5 deletions

View File

@@ -48,9 +48,9 @@
}
function createCollections() {
db.createCollection('objects', function(err, collection) {
db.createCollection('objects', {w:1}, function(err, collection) {
if(err) {
winston.error('Error creating collection ' + err.message);
winston.error('Error creating collection (objects) ' + err.message);
return;
}
@@ -69,9 +69,9 @@
}
});
db.createCollection('search', function(err, collection) {
db.createCollection('search', {w:1}, function(err, collection) {
if(err) {
winston.error('Error creating collection ' + err.message);
winston.error('Error creating collection (search) ' + err.message);
return;
}
if(collection) {