Skip to content
Snippets Groups Projects
Commit 8d193f15 authored by ns17's avatar ns17
Browse files

fixing indigenas_enrollment route

parent a83e8d53
No related branches found
No related tags found
2 merge requests!48Development,!41Rotas indigenas
...@@ -22,7 +22,7 @@ along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>. ...@@ -22,7 +22,7 @@ along with SMPPIR-Node. If not, see <https://www.gnu.org/licenses/>.
var express = require('express'); var express = require('express');
var indigenasSchoolsApp = express.Router(); var indigenasEnrollmentApp = express.Router();
var libs = process.cwd() + '/libs'; var libs = process.cwd() + '/libs';
...@@ -136,10 +136,10 @@ rqf.addField({ ...@@ -136,10 +136,10 @@ rqf.addField({
} }
}); });
indigenasSchoolsApp.get('/', rqf.parse(), rqf.build(), function (req, res, next) { indigenasEnrollmentApp.get('/', rqf.parse(), rqf.build(), function (req, res, next) {
console.log(req.sql.toString()); console.log(req.sql.toString());
req.sql.field('SUM(total) AS Total').from('indigenas_schools_ag'); req.sql.field('SUM(total) AS Total').from('indigenas_schools_ag');
next(); next();
}, query, response('indigenas_mat')); }, query, response('indigenas_mat'));
module.exports = indigenasSchoolsApp; module.exports = indigenasEnrollmentApp;
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment