Skip to content

Commit d05317b

Browse files
update stuff
1 parent 7a41ef0 commit d05317b

File tree

4 files changed

+5891
-1846
lines changed

4 files changed

+5891
-1846
lines changed

db/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = function (mongoose, config) {
2020
function connectMongo(mongoose, config) {
2121
if (config.mongo.url) {
2222
console.log("Connecting to mongodb...");
23-
mongoose.connect(config.mongo.url, {useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, useFindAndModify: true});
23+
mongoose.connect(config.mongo.url, {});
2424
} else {
2525
console.log("Connecting to mongodb://" + ((config.mongo.user || "admin") + ":*****" + "@" + (config.mongo.address || "localhost") + ":" + (config.mongo.port || 27017) + "/" + (config.mongo.database || "database")));
2626
mongoose.connect("mongodb://" + ((config.mongo.user || "admin") + ":" + (config.mongo.pass || "admin") + "@" + (config.mongo.address || "localhost") + ":" + (config.mongo.port || 27017) + "/" + (config.mongo.database || "database")));

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ app.use("/.well-known", express.static(".well-known"));
6262
// app.use(swStats.getMiddleware(config.swagger));
6363

6464
// create a rotating write stream
65-
let accessLogStream = rfs('access.log', {
65+
let accessLogStream = rfs.createStream('access.log', {
6666
interval: '1d', // rotate daily
6767
path: path.join(__dirname, 'log'),
6868
compress: "gzip"

0 commit comments

Comments
 (0)