remove redundant "message" field

This commit is contained in:
hippoz 2021-09-06 18:59:11 +03:00
parent 7e6f7c6352
commit 8a63040fdb
Signed by: hippoz
GPG key ID: 7C52899193467641
2 changed files with 0 additions and 2 deletions

View file

@ -13,7 +13,6 @@ const app = express.Router();
const createLimiter = rateLimit({
windowMs: 2 * 60 * 1000,
max: 10,
message: ""
});
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});

View file

@ -15,7 +15,6 @@ const app = express.Router();
const createAccountLimiter = rateLimit({
windowMs: 60 * 60 * 1000, // 1 hour window
max: 10, // start blocking after 10 requests
message: ""
});
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});