asdaasdad

This commit is contained in:
Troplo 2020-10-24 01:38:14 +11:00
parent 0e4f94efac
commit 6d3ae42a95
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ const likeLimiter = rateLimit({
message: "{\"errors\":[{\"name\":\"rateLimit\",\"message\":\"You may only make 25 requests to this endpoint per minute.\",\"status\":429}]}"
});
router.get('/:post_id', auth, async(req, res, next) => {
router.get('/:post_id', async(req, res, next) => {
try {
let post = await Post.findById(req.params.post_id, { include: Post.includeOptions() })
if(!post) throw Errors.sequelizeValidation(Sequelize, {

View File

@ -11,7 +11,7 @@ const postLimiter = rateLimit({
max: 10,
message: "{\"errors\":[{\"name\":\"rateLimit\",\"message\":\"You may only make 10 requests to this endpoint per minute.\",\"status\":429}]}"
});
router.get('/:thread_id', auth, async(req, res, next) => {
router.get('/:thread_id', async(req, res, next) => {
try {
let { from, limit } = pagination.getPaginationProps(req.query)
let thread = await Thread.findById(req.params.thread_id, {