Posts by júnior • 1 point
1 post
-
0
votes2
answers336
viewsA: Variable scope problem in foreach loop - Nodejs
Just don’t use foreach. Usa for (Let member of members) {}. That: membros.forEach(async membro => { let presenca = await model.getPresenca(membro.id_membro); obj = {...membro, presenca:…