Olimpiadas-INET-2024-Escuela-Tecnica-21 / fase1_backend

async function should have await expression JS-0116
Bug risk
Minor
5 occurrences in this check
Found async function without any await expressions
 3
 4const clientRouter = Router();
 5
 6clientRouter.get("/" , async (req , res) => { 7    res.send(req.query) 8}) 9
10export default clientRouter
Found async function without any await expressions
 6    constructor(){
 7        super(TestController, entity)
 8    }
 9    static async sayHi(){10        try{11            return entity.sayHello()12        }13        catch(error){14            return 'hubo error xd'15        }16    }17}
18
19export default TestController
Found async function without any await expressions
52        }
53    }
54
55    async findError(error, res){56        return res.json({ msg: `El error es ${error.name}, cuyo mensaje es: ${error.message}` })57    }58}
Found async function without any await expressions
49        return res.json({message : "cerraste tu cuenta"})
50    }
51
52    async view(req, res){53        54        return res.json(client)55    }56
57    async validate(req, res){
58
Found async function without any await expressions
42
43    }
44
45    async logout(req, res){46        res.set('client', '', {47          expires: new Date(0), 48        })49        return res.json({message : "cerraste tu cuenta"})50    }51
52    async view(req, res){
53