diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js index 1333aa6472ff915cbffa60498f2396d2020e6afa..2e397a5076f510048a5024beb6f06d370848e783 100644 --- a/src/libs/routes/enrollment.js +++ b/src/libs/routes/enrollment.js @@ -756,7 +756,7 @@ enrollmentApp.get('/', rqf.parse(), (req, res, next) => { .order('matricula.ano_censo') .where('((matricula.tipo<=3 OR matricula.tipo IS NULL) AND (matricula.tipo_atendimento_turma IS NULL OR matricula.tipo_atendimento_turma <= 2))'); next(); -}, rqf.build(), query, id2str.transform(false), response('enrollment')); +}, rqf.build(), (req, res, next) => {console.log(req.sql.toString()); next();}, query, id2str.transform(false), response('enrollment')); enrollmentApp.get('/diagnosis', rqf.parse(), (req, res, next) => { req.dims = {};