Skip to content

Commit

Permalink
quick fix for search generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Mar 1, 2023
1 parent e4f1e20 commit 7d2c511
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/generateSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ markdown.setOptions({
}
});

mongoose.set('strictQuery', false);

// 5.13.5 -> 5.x, 6.8.2 -> 6.x, etc.
version = version.slice(0, version.indexOf('.')) + '.x';

Expand Down Expand Up @@ -127,7 +125,7 @@ async function run() {
process.exit(-1);
}

await mongoose.connect(config.uri, { dbName: 'mongoose' });
await mongoose.connect(config.uri, { dbName: 'mongoose', serverSelectionTimeoutMS: 5000 });

// wait for the index to be created
await Content.init();
Expand Down

0 comments on commit 7d2c511

Please sign in to comment.