From 5266041461fd19b923d3df08e814c863edc9d866 Mon Sep 17 00:00:00 2001
From: Fernando Gbur dos Santos <fernando_gbur@hotmail.com>
Date: Wed, 22 Jan 2025 12:03:54 -0300
Subject: [PATCH] [TEST] Trying to get the correct 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 ad83b9ec..bdb95066 100644
--- a/src/libs/routes_v1/yearsOfStudy.js
+++ b/src/libs/routes_v1/yearsOfStudy.js
@@ -518,7 +518,7 @@ PnadNovoApp.get('/', rqf.parse(), rqf.build(),  (req, res, next) => {
     console.log(req.dims)
     if (req.dims) {
         for (let i in req.dims) {
-            teste += ` and pnad_novo.${i.table} = media.${i.tableField}`
+            teste += ` and pnad_novo.${rqf.f`${i}`.table} = media.${rqf.f`${i}`.tableField}`
         }
     }
 
-- 
GitLab