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

Avoid use of == and != JS-0050
Anti-pattern
Minor
2 occurrences in this check
Expected '===' and instead saw '=='
15        const seller = await this.findById(req)
16        const sellerKey = await Validator.createAuthToken({...seller, isSeller: true}, process.env.SELLER_TOKEN_KEY) //mismo caso que con el salesManager
17
18        if(req.cookie != null && Validator.verify(req.cookie, sellerKey).id == seller.id){  19            return res.json({message : "Su cuenta ha sido validada"})
20        }
21        else{
Expected '===' and instead saw '=='
15        const manager = await this.findById(req)
16        const managerKey = await Validator.createAuthToken({...manager, isSeller: true}, process.env.MANAGER_TOKEN_KEY) //como no tengo el archivo env voy a inventar el nombre del token
17
18        if(req.cookie != null && Validator.verify(req.cookie, managerKey).id == manager.id){  19            return res.json({message : "Su cuenta ha sido validada"})
20        }
21        else{