forked from hippoz/brainlet
remove redundant "message" field
This commit is contained in:
parent
7e6f7c6352
commit
8a63040fdb
2 changed files with 0 additions and 2 deletions
|
@ -13,7 +13,6 @@ const app = express.Router();
|
||||||
const createLimiter = rateLimit({
|
const createLimiter = rateLimit({
|
||||||
windowMs: 2 * 60 * 1000,
|
windowMs: 2 * 60 * 1000,
|
||||||
max: 10,
|
max: 10,
|
||||||
message: ""
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});
|
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});
|
||||||
|
|
|
@ -15,7 +15,6 @@ const app = express.Router();
|
||||||
const createAccountLimiter = rateLimit({
|
const createAccountLimiter = rateLimit({
|
||||||
windowMs: 60 * 60 * 1000, // 1 hour window
|
windowMs: 60 * 60 * 1000, // 1 hour window
|
||||||
max: 10, // start blocking after 10 requests
|
max: 10, // start blocking after 10 requests
|
||||||
message: ""
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});
|
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});
|
||||||
|
|
Loading…
Reference in a new issue