Posts by Rafael Francucci • 1 point
1 post
-
0
votes0
answers22
viewsQ: Is it a scope problem?
I have a problem in obtaining the value of a variable in Nodejs. router.post('/admin/categorias/nova', (req, res) => { var erro = []; Categoria.findOne({ slug: req.body.slug }).then((categorias)…