From 2af0180cdbaf0e84da18eeaa490c1ecb107469b7 Mon Sep 17 00:00:00 2001 From: bcat95 Date: Tue, 22 Aug 2023 13:47:27 +0700 Subject: [PATCH] Update limiter.ts --- service/src/middleware/limiter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/middleware/limiter.ts b/service/src/middleware/limiter.ts index 0da0311..7a70a56 100644 --- a/service/src/middleware/limiter.ts +++ b/service/src/middleware/limiter.ts @@ -12,7 +12,7 @@ const limiter = rateLimit({ max: maxCount, statusCode: 200, // 200 means success,but the message is 'Too many request from this IP in 1 hour' message: async (req, res) => { - res.send({ status: 'Fail', message: 'Too many request from this IP in 1 hour', data: null }) + res.send({ status: 'Fail', message: 'Giới hạn trò chuyện trong 1h, bạn hãy sử dụng https://mentor.chatvn.org để chat không giới hạn.', data: null }) }, })