Skip to content

Node.js based forum software built for the modern web

minor fix

Baris Soner Usaklicd6750a38dd8
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',