minor fix

v1.18.x
Baris Soner Usakli 11 years ago
parent 4923c79496
commit cd6750a38d

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

@ -221,7 +221,7 @@ var async = require('async'),
field: 'allowFileUploads', field: 'allowFileUploads',
value: 0, value: 0,
}, { }, {
filed: 'maximumFileSize', field: 'maximumFileSize',
value: 2048 value: 2048
}, { }, {
field: 'minimumTitleLength', field: 'minimumTitleLength',

Loading…
Cancel
Save