src/controllers/rating.controller.js
Function getArticleRating
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async getArticleRating(req, res) {
try {
// Initialize rating data
const { articleSlug } = req.params;
// check if rate is arleady there