From cd6750a38dd8b680212b92d541629aae937537c6 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 5 Jan 2014 18:30:14 -0500 Subject: [PATCH] minor fix --- src/database/mongo.js | 8 ++++---- src/install.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/database/mongo.js b/src/database/mongo.js index 28fc911096..b0c028a823 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -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) { diff --git a/src/install.js b/src/install.js index ddf74e2f55..61e47bc93d 100644 --- a/src/install.js +++ b/src/install.js @@ -221,7 +221,7 @@ var async = require('async'), field: 'allowFileUploads', value: 0, }, { - filed: 'maximumFileSize', + field: 'maximumFileSize', value: 2048 }, { field: 'minimumTitleLength',