From 8a63040fdbc9f92975547dc5c7503f7adf3b3c16 Mon Sep 17 00:00:00 2001 From: hippoz Date: Mon, 6 Sep 2021 18:59:11 +0300 Subject: [PATCH] remove redundant "message" field --- brainlet/api/v1/content.js | 1 - brainlet/api/v1/users.js | 1 - 2 files changed, 2 deletions(-) diff --git a/brainlet/api/v1/content.js b/brainlet/api/v1/content.js index 0ab6c5f..1a01e4a 100755 --- a/brainlet/api/v1/content.js +++ b/brainlet/api/v1/content.js @@ -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}); diff --git a/brainlet/api/v1/users.js b/brainlet/api/v1/users.js index a40f06a..975f76d 100755 --- a/brainlet/api/v1/users.js +++ b/brainlet/api/v1/users.js @@ -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});