mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
minor fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -221,7 +221,7 @@ var async = require('async'),
|
||||
field: 'allowFileUploads',
|
||||
value: 0,
|
||||
}, {
|
||||
filed: 'maximumFileSize',
|
||||
field: 'maximumFileSize',
|
||||
value: 2048
|
||||
}, {
|
||||
field: 'minimumTitleLength',
|
||||
|
||||
Reference in New Issue
Block a user