Skip to content

Commit

Permalink
Update limiter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bcat95 committed Aug 22, 2023
1 parent dad6c54 commit 2af0180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/middleware/limiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
},
})

Expand Down

0 comments on commit 2af0180

Please sign in to comment.