From a0c46dd2e4c38adb97dfe0e10fcb10dd58cc3c3f Mon Sep 17 00:00:00 2001 From: Fernando Gbur dos Santos <fernando_gbur@hotmail.com> Date: Wed, 22 Jan 2025 11:41:55 -0300 Subject: [PATCH] [ADD] Adding the i variable --- src/libs/routes_v1/yearsOfStudy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/routes_v1/yearsOfStudy.js b/src/libs/routes_v1/yearsOfStudy.js index d3dc226a..d2f71a31 100644 --- a/src/libs/routes_v1/yearsOfStudy.js +++ b/src/libs/routes_v1/yearsOfStudy.js @@ -516,7 +516,7 @@ PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { let teste = "pnad_novo.ano_ref = media.ano_ref" if (req.dims) { - for (i in req.dims) { + for (let i in req.dims) { teste += ` and pnad_novo.${i.table} = media.${i.tableField}` } } -- GitLab